-
Notifications
You must be signed in to change notification settings - Fork 833
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 not install in Colab #347
Comments
Getting the same error. Quite strange that nobody seems to have checked if the Colab version works :o - It´s usally the first thing people try and a good indication of a projects health. |
Same here. Have you found a workaround @thomasf1 @pitikorn32 ? |
@yassineyahyaoui I have concluded that if they don't care about that, the rest will be a bit of a mess, too and moved on to use another project. |
Is there any other project for Dino v2? I am facing same error. |
@JyotsanaS
That's how it worked for me, I hope it works for you too. |
@thomasf1 @pitikorn32 @JyotsanaS I finally found a workaround that fixes Dinov2 Semantic Segmentation Notebook: Link |
I changed the section of the code as follows: import sys
INSTALL = True # Switch this to install dependencies
if INSTALL: # Try installing package with extras
REPO_URL = "https://github.com/facebookresearch/dinov2"
!git clone {REPO_URL}
%cd dinov2
!{sys.executable} -m pip install -e . --extra-index-url https://download.pytorch.org/whl/cu117 --extra-index-url https://pypi.nvidia.com
!{sys.executable} -m pip install -r requirements-extras.txt --extra-index-url https://download.pytorch.org/whl/cu117 --extra-index-url https://pypi.nvidia.com
else:
REPO_PATH = "<FIXME>" # Specify a local path to the repository (or use installed package instead)
sys.path.append(REPO_PATH) Edit: !pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html |
I have issue about install DinoV2 in Google Colab.
First, I want to run https://github.com/facebookresearch/dinov2/blob/main/notebooks/semantic_segmentation.ipynb in Colab.
And I switched
INSTALL = True
to install but I found thisThen I tried another way follow this #219 (comment).
But still error while
pip install -r requirements.txt -r requirements-extras.txt
If someone can run
semantic_segmentation
in Colab help me please.The text was updated successfully, but these errors were encountered: