Skip to content

Instantly share code, notes, and snippets.

@bhavesh-b
Created August 3, 2020 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhavesh-b/7dad94f7dd25a267614bf408f3d57c26 to your computer and use it in GitHub Desktop.
Save bhavesh-b/7dad94f7dd25a267614bf408f3d57c26 to your computer and use it in GitHub Desktop.
# install dependencies:
!pip install pyyaml==5.1 pycocotools>=2.0.1
import torch, torchvision
print(torch.__version__, torch.cuda.is_available())
!gcc - version
# opencv is pre-installed on colab
# install detectron2: (colab has CUDA 10.1 + torch 1.6):
# See https://detectron2.readthedocs.io/tutorials/install.html for instructions
assert torch.__version__.startswith("1.6")
!pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.6/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment