You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a question about the run_cellpose_2.ipynb. For the section of Train new model, the initial model was trained and saved to model_path = train_dir + 'models/'. And then, for the following codes from the section of Evaluation on test data below,
When you run the model on test images, why don'tyou load the trained model "CP_tissuenet" from the path and then pass the trained model for evaluation? why do you still directly call the model.eval()? It seems themodel.eval()` still calls the initial cyto default model, not the trained model' for evaluation. I would think of replacing this code block by below:
Hello, I have a question about the run_cellpose_2.ipynb. For the section of Train new model, the initial model was trained and saved to model_path = train_dir + 'models/'. And then, for the following codes from the section of Evaluation on test data below,
masks = model.eval(test_data, channels=[chan, chan2], diameter=diam_labels)[0]
When you run the model on test images, why don't
you load the trained model "CP_tissuenet" from the path and then pass the trained model for evaluation? why do you still directly call the model.eval()? It seems the
model.eval()` still calls the initial cyto default model, not the trained model' for evaluation. I would think of replacing this code block by below:trained_model_path = "content/human_in_the_loop/train/models/CP_tissuenet"
model = models.CellposeModel(gpu=True, pretrained_model= trained_model_path )
masks = model.eval(test_data,
channels=[chan, chan2],
diameter=diam_labels)[0]
Could you pls check?
The text was updated successfully, but these errors were encountered: