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