-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Can't reproduce colab getting started example #3166
Comments
Same for me too. Tried to upgrade torchvision and pytorch but it did not work. |
I got the the tutorial to work by downgrading the PyTorch version to 1.8. first before importing it. (Ran the following line before anything else in the tutorial): !pip install torch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 Then when installing Detectron, instead of installing the Detectron version in the original tutorial, I used the version compatible with PyTorch 1.8 and CUDA 10.2: ! pip install detectron2==0.4 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.8/index.html Hope this helps! |
@AnnetGeorge AnnetGeorge |
Please run this before anything else Hope this helps |
This worked for me (Colab supports CUDA 11.1): But still, it takes a very long time to run in Colab (much longer than when pytorch 1.8 was the default). Is there any plan for Detectron to support Pytorch 1.9 soon? That would let us avoid this whole problem of reinstalling Pytorch. |
This blog post contained instructions that worked for me https://www.sproutworkshop.com/2021/05/how-to-install-detectron2/ I substituted in these two pip installs in the tutorial colab notebook and removed the assertion check for pytorch 1.8 !pip3 install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html |
release for pytorch1.9 is tracked in #3158. Before that is available, the best workaround is to manually reinstall pytorch1.8 as suggested above. |
note: downgrading to pytorch 1.8 did not work for me in the Google Colab notebook tutorial, still got some CUDA error The solution I pasted above with the pre-release pytorch did work in the Colab tutorial training example. |
@hqm it should work if you use pytorch1.8+ cuda 10.1. The pytorch bug only exists for pytorch 1.8.x & cuda>=11 |
I don't think I can control which cuda is running on the Google Colab
server that they spin up ..
…On Wed, Jun 23, 2021 at 9:00 PM Yuxin Wu ***@***.***> wrote:
@hqm </~https://github.com/hqm> it should work if you use pytorch1.8+ cuda
10.1. The pytorch bug only exists for pytorch 1.8.x & cuda>=11
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3166 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAAAORQ625A4MVBUGWA2MODTUJ7SHANCNFSM47BIDA7Q>
.
--
Henry Minsky
|
Yes @hqm - your solution worked for me in the colab notebook. The other approaches did not work out for me either. |
The official colab tutorial has now been updated and tested with the workaround to use pytorch1.8. |
Instructions To Reproduce the 🐛 Bug:
Tried to run the colab getting started on the detectron2 default GitHub repository, but it's not reproducing.
What exact command you run:
Exact steps being followed on the getting colab getting started
please simplify the steps as much as possible so they do not require additional resources to
Default dataset used in the colab getting started
Environment:
Colab is now using Pytorch 1.9 and installation is not working as suggested in the notebook, besides commenting on the assert condition of PyTorch 1.8. version is still producing error while
. @ppwwyyxx any hints or recommendations would be very helpful.
Kind Regards,
The text was updated successfully, but these errors were encountered: