You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all many thanks for this amazing package. I'm using the pre-trained bact_fluor_omni model with GPU - this runs
fine. However, I wanted to test the speed without GPU and then encountered issue.
I'm running the test in a separate Conda environment with Python 3.10.11, with the latest Omnipose installed from this GitHub repo (instead of PyPI).
The relevant part of my code is (mostly following the example in this repo):
imgs = [io.imread(f) for f in files]
model_name = 'bact_fluor_omni'
model = models.CellposeModel(gpu=False, model_type=model_name)
chans = [0,0] #this means segment based on first channel, no second channel
n = range(3)
# define parameters
params = {'channels':chans, # always define this with the model
'rescale': None, # upscale or downscale your images, None = no rescaling
'mask_threshold': -2, # erode or dilate masks with higher or lower values between -5 and 5
'flow_threshold': 0, # default is .4, but only needed if there are spurious masks to clean up; slows down output
'transparency': True, # transparency in flow output
'omni': True, # we can turn off Omnipose mask reconstruction, not advised
'cluster': True, # use DBSCAN clustering
'resample': True, # whether or not to run dynamics on rescaled grid or original grid
'verbose': False, # turn on if you want to see more output
'tile': False, # average the outputs from flipped (augmented) images; slower, usually not needed
'niter': None, # default None lets Omnipose calculate # of Euler iterations (usually <20) but you can tune it for over/under segmentation
'augment': False, # Can optionally rotate the image and average network outputs, usually not needed
'affinity_seg': False, # new feature, stay tuned...
}
masks, flows, styles = model.eval([imgs[i] for i in n],**params)
Hello, first of all many thanks for this amazing package. I'm using the pre-trained
bact_fluor_omni
model with GPU - this runsfine. However, I wanted to test the speed without GPU and then encountered issue.
I'm running the test in a separate Conda environment with Python 3.10.11, with the latest Omnipose installed from this GitHub repo (instead of PyPI).
The relevant part of my code is (mostly following the example in this repo):
The trackback is:
I'm not sure if this is a software bug or just me. Many thanks!
The text was updated successfully, but these errors were encountered: