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

Non-reproducible results from command line [BUG] #843

Closed
HernandoMV opened this issue Jan 11, 2024 · 3 comments
Closed

Non-reproducible results from command line [BUG] #843

HernandoMV opened this issue Jan 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@HernandoMV
Copy link

Describe the bug
I am having different results with the GUI and the CLI, presumably with same arguments

To Reproduce
Steps to reproduce the behavior:

  1. Run cyto model on the attached image on the GUI with diameter 120, and the rest are default parameters. I get 2 ROIs
  2. Run CLI as in the log below. I get 0 ROIs.

Run log
python -m cellpose --dir /mnt/d/temp/test/ --pretrained_model cyto --diameter 120 --use_gpu --chan 0 --verbose
2024-01-11 15:26:17,559 [INFO] WRITING LOG OUTPUT TO /home/hernando/.cellpose/run.log
2024-01-11 15:26:17,559 [INFO]
cellpose version: 2.2.3
platform: linux
python version: 3.10.10
torch version: 2.0.1+cu117
2024-01-11 15:26:18,094 [INFO] ** TORCH CUDA version installed and working. **
2024-01-11 15:26:18,094 [INFO] >>>> using GPU
2024-01-11 15:26:18,108 [INFO] >>>> running cellpose on 1 images using chan_to_seg GRAY and chan (opt) NONE
2024-01-11 15:26:18,109 [INFO] ** TORCH CUDA version installed and working. **
2024-01-11 15:26:18,109 [INFO] >>>> using GPU
2024-01-11 15:26:18,109 [INFO] >> cyto << model set to be used
2024-01-11 15:26:18,199 [INFO] >>>> model diam_mean = 30.000 (ROIs rescaled to this size during training)
2024-01-11 15:26:18,200 [INFO] >>>> using diameter 120.000 for all images
2024-01-11 15:26:18,201 [INFO] 0%| | 0/1 [00:00<?, ?it/s]
2024-01-11 15:26:18,208 [INFO] ~~~ FINDING MASKS ~~~
2024-01-11 15:26:19,037 [INFO] >>>> TOTAL TIME 0.83 sec
2024-01-11 15:26:19,050 [INFO] 100%|##########| 1/1 [00:00<00:00, 1.18it/s]
2024-01-11 15:26:19,050 [INFO] 100%|##########| 1/1 [00:00<00:00, 1.18it/s]
2024-01-11 15:26:19,050 [INFO] >>>> completed in 0.956 sec

Screenshots
image

Actual image
MJFF_Cali_011_C05_010_Time_Z_3_enhanced-scaled

@HernandoMV HernandoMV added the bug Something isn't working label Jan 11, 2024
@carsen-stringer
Copy link
Member

hmm are you sure it is absolutely the same image? or maybe the GUI is normalizing it different, what dtype is the image?

@HernandoMV
Copy link
Author

Yeah it is the same image. A .tif file

@carsen-stringer
Copy link
Member

are you still having this issue? going to close this one and keep track in #972

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