Repository navigation
Add GPU support for Cellpose #39
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3b447f7
add params to use cellpose v4 with GPU
alihamraoui ce6fe67
add cellpose v4 image with pytorch+CUDA used with GPU
alihamraoui 2490b5a
del --cellpose_use_gpu and reuse the already existed --gpu to select …
alihamraoui 6499d24
correct typos in code comment
alihamraoui 6ee8057
add cellpose v4-pytorch-cuda singularity image
alihamraoui 51a0f59
add option to force Cellpose version
alihamraoui fe6d418
move container logic to modules.config
alihamraoui cf84f89
update cellpose v4 version and containers
alihamraoui 5535584
add logic to hundel cellpose conda env
alihamraoui 44fda84
remove the Cellpose v3 + gpu warning
alihamraoui File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
modules/local/patch_segmentation_cellpose/environment_gpu_v3.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Built with wave --conda-file environment_gpu.yml --freeze --await 30m --platform linux/amd64 | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - python=3.12 | ||
| - sopa=2.2.11 | ||
| - cellpose=3.1.1.3 | ||
| - pytorch-gpu=2.13.0 | ||
| - cuda-version=12.9 |
15 changes: 15 additions & 0 deletions
15
modules/local/patch_segmentation_cellpose/environment_gpu_v4.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Built with wave --conda-file environment_gpu_v4.yml --freeze --await 30m --platform linux/amd64 | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - python=3.12 | ||
| - sopa=2.2.11 | ||
| - pytorch-gpu=2.13.0 | ||
| - cuda-version=12.9 | ||
| - torchvision=0.28.0 | ||
| - git | ||
| - pip | ||
| - pip: | ||
| - cellpose==4.2.1.1 | ||
| - git+https://github.com/facebookresearch/dinov3 |
14 changes: 14 additions & 0 deletions
14
modules/local/patch_segmentation_cellpose/environment_v4.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Built with wave --conda-file environment_v4.yml --freeze --await 30m --platform linux/amd64 | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - python=3.12 | ||
| - sopa=2.2.11 | ||
| - pytorch=2.13.0 | ||
| - torchvision=0.28.0 | ||
| - git | ||
| - pip | ||
| - pip: | ||
| - cellpose==4.2.1.1 | ||
| - git+https://github.com/facebookresearch/dinov3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need the
containercommand within these process, since we have it already inconf/modules.config?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I keept them as a fallback for module tests or nf-core download. conf/modules.config overrides them to pick the GPU or v4 variant. but we can remove them and nothing changes when the pipeline runs.