Closed carolche closed 1 year ago
I am getting exactly the same error
The problem seems to be in this if/else statement. When I disable the if
the training runs through.
@JojoDevel @carolche Could you let me know which version of pytorch you have installed with pip list
? I am running 1.12.1 with no training issues, but the torch API and cuda support changes so frequently that upgrading to 1.13.0 or downgrading to 1.8.1 caused two compeltely different issues to the one you raise. Let me know your cuda version as well, if applicable (could be a training on CPU issue, which I'll take a look at as well - might be likely considering that note on the if statement).
Edit: indeed, this issue appears when training on CPU. I'll do my best to fix this. I think the main branch of cellpose does not support training on CPU because it's probably too slow to be useful (or worse, pytorch actually doesn't support it). We shall see.
Ok, @JojoDevel that if/else was entirely removed in cellpose a long time ago (presumably this an mxnet/torch compatibility thing). Download v0.7.2 cellpose-omni for the fixed version!
@kevinjohncutler I downloaded the 0.7.2 cellpose-omni version and it worked! Thank you so much! take care
@kevinjohncutler I just looked into the cellpose submodule in the repo. Is that not in sync with the cellpose version we should use?
Hello, I am trying to train my model on Omnipose CLI, but I keep getting two different errors: 1) raise RuntimeError('affine matrix has wrong number of rows') 2) AttributeError: 'CPnet' object has no attribute 'module'. Did you mean: 'modules'? I tried using my own images as well as data from the Stardist training set. Any help would be greatly appreciated.
Thanks so much for your work and help.