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

AssertionError #10

Open
sheep126 opened this issue Mar 10, 2023 · 1 comment
Open

AssertionError #10

sheep126 opened this issue Mar 10, 2023 · 1 comment

Comments

@sheep126
Copy link

assert torch.__version__.startswith("1.7")
!pip install detectron2 -f
https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.7/index.html
clear_output()


AssertionError Traceback (most recent call last)
in
3 # See https://detectron2.readthedocs.io/tutorials/install.html for instructions if you
4 # want to switch to an older version
----> 5 assert torch.version.startswith("1.7")
6 get_ipython().system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.7/index.html')
7 clear_output()

AssertionError:

I am getting this error in that code. What should i do to solve this problem?
I ran this in colab.

@zymk9
Copy link
Owner

zymk9 commented Mar 25, 2023

Hi. It seems that Colab has updated their PyTorch version for the default environment.

You may try to uninstall the existing PyTorch and CUDAToolkit and reinstall the corresponding version (1.7+cu101 in this case) by refering to the PyTorch website: https://pytorch.org/get-started/previous-versions/#v170

Another alternative is to install a newer version of Detectron2 and AdelaiDet that are compatible with the Colab included PyTorch and see whether the models still work.

Hope this will solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants