prepare_model_cli¶

prepare_model_cli(img_input, output_path, masks, file_types)[source]¶

Prepares cli for running models.

Checks for existing directories to run tests. Converts file path to list of file paths or creates list of file paths if input is a directory.

Parameters:
  • img_input (str or Path) – File path to images.

  • output_path (str or Path) – Output directory path.

  • masks (str or Path) – File path to masks.

  • file_types (str) – File types to process using cli.

Returns:

List of file paths to process. list:

List of masks corresponding to input files.

Path:

Output path.

Return type:

list