MouseLand/cellpose

y.segmented = y_data unboundlocalerror: local variable 'y_data' referenced before assignment

Closed this issue · 4 comments

Cellpose version 3.0.10 and cellprofiler 4.2.6. I can't get cellpose to run as a plug-in. It runs in the same environment fine. But I can't edit the runcellpose file to much with out cellprofiler not recognizing the file. Please help me im losing sleep trying to figure it out. Ive changed the workers and GPU memory share workers but nothing has fix the issue for it to run.
452a56dcf75121f31a5c74ffb064563219ba00dc_2_1332x1000
3b0b8d3bf8fd5581ad09d4b17784f85546780f1d_2_750x1000
31645f6b34adc9ced4abf115012c16e8a0d450bb_2_750x1000

31f21affe6bca626ae6720de44a7ccc61842e668_2_750x1000

My gut reaction is that Cellprofiler was built cooperate with Cellpose 2 and not on Cellpose 3. The relevant error seems to be that net_avg was provided as a parameter to eval(), but this is no longer a parameter in Cellpose 3. Therefore, masks/segmentations can't be generated.

I would suggest downgrading to Cellpose 2 or else going into the underlying script to remove that parameter as an input.

My gut reaction is that Cellprofiler was built cooperate with Cellpose 2 and not on Cellpose 3. The relevant error seems to be that net_avg was provided as a parameter to eval(), but this is no longer a parameter in Cellpose 3. Therefore, masks/segmentations can't be generated.

I would suggest downgrading to Cellpose 2 or else going into the underlying script to remove that parameter as an input.

Omg! Thank you sweet soul for helping me and for replying downgrading worked.

My gut reaction is that Cellprofiler was built cooperate with Cellpose 2 and not on Cellpose 3. The relevant error seems to be that net_avg was provided as a parameter to eval(), but this is no longer a parameter in Cellpose 3. Therefore, masks/segmentations can't be generated.

I would suggest downgrading to Cellpose 2 or else going into the underlying script to remove that parameter as an input.

I tried changing the input but then Cellprofiler wouldn't recognize the file. But downgrading worked.

great! I think you may want to raise an issue on cellprofiler to see if they'll support cellpose3 in the future since we have more models available in that version