Skip to content

Commit 9947b9a

Browse files
Merge pull request #1470 from MouseLand/doc_fix
update doc string #1469 and import error message
2 parents 45897c6 + 0378cc3 commit 9947b9a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cellpose/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
try:
2121
from .vit import CPDINO
2222
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")
2424
from .core import assign_device, run_net, run_3D
2525

2626
_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,
108108
109109
Parameters:
110110
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".
112112
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.
114114
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")).
115115
use_bfloat16 (bool, optional): Use 16bit float precision instead of 32bit for model weights. Default to 16bit (True).
116116
"""

cellpose/vit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
try:
1616
from dinov3.hub.backbones import dinov3_vitl16, dinov3_vitb16
1717
except:
18-
vit_logger.warning("Could not import CPDINO, run `pip install cellpose[dino]` to use CPDINO model")
18+
vit_logger.warning("Could not import CPDINO, run `pip install git+https://github.com/facebookresearch/dinov3` to use CPDINO model")
1919

2020

2121
class BaseModel(nn.Module):

0 commit comments

Comments
 (0)