我正在尝试包含 connection 2. Google .上的数据,我为colab和我的驱动器建立了连接。在那之后:
!pip install pyyaml
!pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.7/index.html没有任何错误。
我一直在尝试这个;
import numpy as np
import os, json, cv2, random
from google.colab.patches import cv2_imshow
import detectron2
from detectron2.data import MetadataCatalog, DatasetCatalog
from detectron2.utils.visualizer import Visualizer
from detectron2 import model_zoo但是输出如下:在这里输入图像描述
我怎么才能解决呢?
发布于 2021-06-01 08:03:37
我就这样修正了:
!pip install pyyaml==5.1
import torch, torchvision
print(torch.__version__, torch.cuda.is_available())
!gcc --version
import torch
assert torch.__version__.startswith("1.8")
!pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html
# exit(0) # After installation, you need to "restart runtime" in Colab. This line can also restart runtimehttps://stackoverflow.com/questions/67784889
复制相似问题