Export and Convert

class adelecv.api.modification_models.ExportWeights(weights_path=PosixPath('tmp/d70a69a3bcf34b5c8df30acc6e093456/weights'))[source]

Class for export weights.

Parameters:

weights_path (Path) – Path to saved weights.

create_zip(id_selected=None)[source]
Create zip file with selected models. If no model

in selected then use all models.

Parameters:

id_selected (None | set[str] | list[str]) – List with id models from stats_models

Returns:

Path to created zip file.

Return type:

Path

class adelecv.api.modification_models.ConvertWeights(img_shape, weights_path=PosixPath('tmp/d70a69a3bcf34b5c8df30acc6e093456/weights'))[source]

Class for conversation weights.

Parameters:
  • weights_path (Path) – Path to saved weights.

  • img_shape (list[int] | tuple[int]) –

run(id_selected=None, new_format=None)[source]

Converting selected models to the specified format.

Parameters:
  • new_format (None | str) – format weights for conversation

  • id_selected (None | set[str] | list[str]) – List with id models from stats_models

Returns:

Path to created zip file with other formats weights.

Return type:

Path