|
20 | 20 | try: |
21 | 21 | from .vit import CPDINO |
22 | 22 | except: |
23 | | - models_logger.warning("Could not import CPDINO, run `pip install cellpose[dino]` to use CPDINO model") |
| 23 | + models_logger.warning("Could not import CPDINO, run `pip install git+https://github.com/facebookresearch/dinov3` to use CPDINO model") |
24 | 24 | from .core import assign_device, run_net, run_3D |
25 | 25 |
|
26 | 26 | _MODEL_URL = "https://huggingface.co/mouseland/cellpose-sam/resolve/main/" |
@@ -108,9 +108,9 @@ def __init__(self, gpu=False, pretrained_model="cpsam_v2", model_type=None, |
108 | 108 |
|
109 | 109 | Parameters: |
110 | 110 | gpu (bool, optional): Whether or not to save model to GPU, will check if GPU available. |
111 | | - pretrained_model (str or list of strings, optional): Full path to pretrained cellpose model(s), if None or False, no model loaded. |
| 111 | + pretrained_model (str): Name of pretrained model ("cpdino", "cpsam_v2", etc) or path to pretrained cellpose model. Default is "cpsam_v2". |
112 | 112 | model_type (str, optional): Any model that is available in the GUI, use name in GUI e.g. "livecell" (can be user-trained or model zoo). |
113 | | - diam_mean (float, optional): Mean "diameter", 30. is built-in value for "cyto" model; 17. is built-in value for "nuclei" model; if saved in custom model file (cellpose>=2.0) then it will be loaded automatically and overwrite this value. |
| 113 | + diam_mean (float, optional): Deprecated in v4.0.1+, not used. |
114 | 114 | device (torch device, optional): Device used for model running / training (torch.device("cuda") or torch.device("cpu")), overrides gpu input, recommended if you want to use a specific GPU (e.g. torch.device("cuda:1")). |
115 | 115 | use_bfloat16 (bool, optional): Use 16bit float precision instead of 32bit for model weights. Default to 16bit (True). |
116 | 116 | """ |
|
0 commit comments