Open ianmanifacier opened 1 month ago
for retraining, you want to use the Cellpose 2 settings, which are provided in the example in the docs:
model_path = train.train_seg(model.net, train_data=images, train_labels=labels,
channels=[1,2], normalize=True,
test_data=test_images, test_labels=test_labels,
weight_decay=1e-4, SGD=True, learning_rate=0.1, # <-- these are the retraining params
n_epochs=300, model_name="my_new_model")
https://cellpose.readthedocs.io/en/latest/train.html
We found that SGD usually works best when retraining, and AdamW works better when training from scratch. We will add more documentation on this
Hi, I have tried to retrain the cellpose 'cyto3' and 'livecell' using tif masks as indicated in the documentation.
0 = black = background each value between 1-255 corresponds to the mask of a single cell. frame_000.tif frame_000_masks.tif (click the link for example files)
When I launch the training set on 230 images the training process runs without error. However, after the training end I use the newly trained model located in the folder, I get worse results.
I must be doing something wrong but I don't know what.
I tried formatting the tif file in 8 and 16 bits.
Here is a preview![image](https://github.com/MouseLand/cellpose/assets/17890474/7d0bdebc-0af6-4993-a513-a32976ff7898)
The python code I used to train cellpose
Thank you for your help Ian