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.
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