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

Workaround to run plant-seg in colaboratory (with CUDA12.2 as of Jan. 2024) #182

Closed
totti0223 opened this issue Jan 21, 2024 · 2 comments
Closed
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@totti0223
Copy link

F.Y.I.

!pip install -q condacolab
import condacolab
condacolab.install()
!conda install -q -c conda-forge mamba
# https://github.com/conda-incubator/condacolab/issues/60
with open('/usr/local/conda-meta/pinned', 'w') as f:
    f.write("python 3.10.*\npython_abi 3.10.* *cp310*\ncuda-toolkit 12.2.*")
!mamba install -c pytorch -c nvidia -c conda-forge pytorch pytorch-cuda=12.1 pyqt plant-seg
!plantseg --config config.yaml

image

@qin-yu
Copy link
Collaborator

qin-yu commented Jan 31, 2024

Thanks for the issue @totti0223

I wonder if you can explain more on the actual issue/problem to provide some background information?

If it turns out to be a common issue, we might consider adding it to our troubleshooting section to assist others who might face the same problem in the future.

@totti0223
Copy link
Author

i really dont know the precise background of this environmental break in condacolab with cuda 12.2,
the error I encounted when trying to execute the colaboratory notebook which you have deleted recently outputs error message related to condacolab env. setup "cuda pinned not found" or something like that.

found simiar error message in condacolab repo issue and a workaround for it in this thread, tryed and worked.
conda-incubator/condacolab#60 (comment)

i am not sure whether this is a permanent solution to this problem, as it might be resolved in future update of condacolab or cuda-toolkit.

so i say its a temp workaround for a while.

@qin-yu qin-yu added documentation Improvements or additions to documentation question Further information is requested labels Apr 15, 2024
@qin-yu qin-yu closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants