ruoqianguo / DetNet_pytorch

An implementation of DetNet: A Backbone network for Object Detection.
MIT License
377 stars 117 forks source link

train:ImportError: dynamic module does not define module export function (PyInit__roi_crop) #13

Open DetectionIIT opened 6 years ago

DetectionIIT commented 6 years ago

With using the version of pytorch0.3.1 and pytorch0.4.0 both with python3.6, I met the error as blow:

Traceback (most recent call last): File "trainval_aiia.py", line 29, in from model.utils.net_utils import vis_detections File "/disk1/g201708021059/gg/DetNet_Pytorch/lib/model/utils/net_utils.py", line 11, in from model.roi_crop.functions.roi_crop import RoICropFunction File "/disk1/g201708021059/gg/DetNet_Pytorch/lib/model/roi_crop/functions/roi_crop.py", line 4, in from .._ext import roi_crop File "/disk1/g201708021059/gg/DetNet_Pytorch/lib/model/roi_crop/_ext/roi_crop/init.py", line 3, in from ._roi_crop import lib as _lib, ffi as _ffi ImportError: dynamic module does not define module export function (PyInit__roi_crop)

When I change to use python2.7,pytorch0.3.1,other error arised as blow:

(py27-pytorch) g201708021059@scw4750:~/gg/DetNet_Pytorch$ CUDA_VISIBLE_DEVICES=0 python3 trainval_aiia.py exp_name --dataset pascal_voc --net detnet59 --bs 1 --nw 1 --lr 1e-3 --epochs 12 --save_dir weights --cuda --use_tfboard True Traceback (most recent call last): File "trainval_aiia.py", line 29, in from model.utils.net_utils import vis_detections File "/disk1/g201708021059/gg/DetNet_Pytorch/lib/model/utils/net_utils.py", line 9, in import torchvision.models as models ModuleNotFoundError: No module named 'torchvision.models'

and I have done the complilation process, with using the cuda80/cudnn6.0

SteinsGate9 commented 5 years ago

same error~

gaichengyuan commented 5 years ago

@emmra Have you solved this problem? I made the same bug as you.