cellcoloc.create_cellpose_models_for_channelsο
- cellcoloc.create_cellpose_models_for_channels(cell_model_config, marker_model_config, use_gpu)[source]ο
Create Cellpose model instances for the cell and marker channels.
Models are only created for channels configured with
segmentation_method="cellpose". For Cellpose 4 and newer, the same model instance is reused when both such channels request the same built-in model or custom model path. For older Cellpose versions, the previous behavior is preserved and separate model instances are created for each Cellpose channel configuration.- Return type:
tuple[CellposeModel|None,CellposeModel|None]