cellcoloc.create_cellpose_model

cellcoloc.create_cellpose_model(model_name_or_path, use_gpu)[source]

Create a Cellpose model from either a built-in name or a custom path.

The helper is intentionally strict: if a requested built-in model name is not locally available in the installed Cellpose version, it raises a clear error instead of silently falling back to a different model. It also adapts model construction to the installed Cellpose major version so that newer Cellpose 4 setups do not receive the deprecated model_type argument.

Return type:

CellposeModel