dinov2 icon indicating copy to clipboard operation
dinov2 copied to clipboard

Can not install in Colab

Open pitikorn32 opened this issue 6 months ago • 6 comments

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.

import sys

INSTALL = True # Switch this to install dependencies
if INSTALL: # Try installing package with extras
    REPO_URL = "https://github.com/facebookresearch/dinov2"
    !{sys.executable} -m pip install -e {REPO_URL}'[extras]' --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)

And I switched INSTALL = True to install but I found this

ERROR: https://github.com/facebookresearch/dinov2[extras] is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

image

Then I tried another way follow this https://github.com/facebookresearch/dinov2/issues/219#issuecomment-1722482446. But still error while pip install -r requirements.txt -r requirements-extras.txt

image

If someone can run semantic_segmentation in Colab help me please.

pitikorn32 avatar Dec 25 '23 16:12 pitikorn32