-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFound Error while training a new model #58
Comments
I got the same error when trying to train. The problem comes from omnipose/core.py, line 2360, it looks like there is a debug save not commented out. If you have the code you can comment that line out. Although then, there will be a ValueError raised because the data didn't look as omnipose expected it to.
|
Sorry I didn't see this. @Jolanda5 @ThaoCao, this error comes up if your images are too sparse or completely full of cell pixels, indicating that your training data is not well-formatted. I should replace this with an alternate directory or just kill the process, but I suppose this accidentally accomplishes the latter. In the meantime, you can edit this save command so that you can see which image is giving you the error. |
My solution was to comment the data checking and recursion out because we want our training to include negative GT (GT where the network is not supposed to detect anything). |
Hi all, I am wondering if anyone has encountered this error: FileNotFoundError: The directory '/home/kcutler/DataDrive/debug' does not exist.
I am trying to train a new omnipose model (linux terminal - GPU). In omnipose venv, the command is:
python -m omnipose --train --use_gpu --dir /home/thaocao/omnipose_training_images1/ --img_filter _img --mask_filter _masks
--n_epochs 4000 --pretrained_model bact_phase_omni_2 --learning_rate 0.1 --diameter 0
--batch_size 16 --RAdam --all_channels --nclasses 2 --tyx 128,128 --save_each
I see that a folder 'models' was created within my given directory of training images, but nothing was saved.
The images are single channel .tif in 8-bit. The masks are binary .tif in 8-bit with foreground =1 and background=0.
If anyone has any thoughts, I'd be hugely grateful!
Thanks
The text was updated successfully, but these errors were encountered: