天池龙珠计划深度学习训练营学习笔记
源码bug
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-9-f119e1dec8f0> in <module>
7from torch.optim import lr_scheduler
8from torch.autograd import Variable
----> 9import torchvision
10from torchvision import datasets, models, transforms
11import time
/opt/conda/lib/python3.6/site-packages/torchvision/__init__.py in <module>
----> 1from torchvision import models
2from torchvision import datasets
3from torchvision import ops
4from torchvision import transforms
5from torchvision import utils
/opt/conda/lib/python3.6/site-packages/torchvision/models/__init__.py in <module>
9from.shufflenetv2 import*
10from.import segmentation
---> 11from.import detection
/opt/conda/lib/python3.6/site-packages/torchvision/models/detection/__init__.py in <module>
----> 1from.faster_rcnn import*
2from.mask_rcnn import*
3from.keypoint_rcnn import*
/opt/conda/lib/python3.6/site-packages/torchvision/models/detection/faster_rcnn.py in <module>
5import torch.nn.functional as F
6
----> 7from torchvision.ops import misc as misc_nn_ops
8from torchvision.ops import MultiScaleRoIAlign
9
/opt/conda/lib/python3.6/site-packages/torchvision/ops/__init__.py in <module>
----> 1from.boxes import nms, box_iou
2from.roi_align import roi_align, RoIAlign
3from.roi_pool import roi_pool, RoIPool
4from.poolers import MultiScaleRoIAlign
5from.feature_pyramid_network import FeaturePyramidNetwork
/opt/conda/lib/python3.6/site-packages/torchvision/ops/boxes.py in <module>
1import torch
----> 2from torchvision import _C
3
4
5def nms(boxes, scores, iou_threshold):
ImportError: /opt/conda/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E