Skip to content
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

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

Open
Pvannd opened this issue Jul 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Pvannd
Copy link

Pvannd commented Jul 2, 2024

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

@Pvannd Pvannd added the bug Something isn't working label Jul 2, 2024
@ian-coccimiglio
Copy link

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.

@Pvannd
Copy link
Author

Pvannd commented Jul 2, 2024

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.

@Pvannd
Copy link
Author

Pvannd commented Jul 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants