Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions active_plugins/runcellpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,13 @@ def run(self, workspace):
# Save the image to the Docker mounted directory
skimage.io.imsave(temp_img_path, x_data)

cmd = [docker_path, 'run', '--rm', '-v', f'{temp_dir}:/data', self.docker_image.value]
cmd = [docker_path, 'run', '--rm', '-v', f'{temp_dir}:/data',]
if self.use_gpu.value:
cmd += ['--gpus', 'all']
cmd += ['cellpose', '--verbose', '--dir', '/data/img', '--pretrained_model']
cmd += [self.docker_image.value, 'cellpose']
if self.use_gpu.value:
cmd += ['--use_gpu']
cmd += ['--verbose', '--dir', '/data/img', '--pretrained_model']
if self.mode.value !='custom':
cmd += [self.mode.value]
else:
Expand Down