Wangt-CN / VC-R-CNN

[CVPR 2020] The official pytorch implementation of ``Visual Commonsense R-CNN''
MIT License
352 stars 61 forks source link

cannot import name '_C' from 'vc_rcnn' #5

Closed amanchadha closed 4 years ago

amanchadha commented 4 years ago

'_C' in 'vc_rcnn/' appears to be missing. Command line and error is below:

$ python3 tools/test_net.py --config-file "configs/e2e_mask_rcnn_R_50_FPN_1x.yaml" TEST.IMS_PER_BATCH images_per_gpu x $GPUS Traceback (most recent call last): File "tools/test_net.py", line 13, in from vc_rcnn.data import make_data_loader File "./vc_rcnn/data/init.py", line 2, in from .build import make_data_loader File "./vc_rcnn/data/build.py", line 11, in from . import datasets as D File "./vc_rcnn/data/datasets/init.py", line 3, in from .coco import COCODataset File "./vc_rcnn/data/datasets/coco.py", line 8, in from vc_rcnn.structures.segmentation_mask import SegmentationMask File "./vc_rcnn/structures/segmentation_mask.py", line 5, in from vc_rcnn.layers.misc import interpolate File "./vc_rcnn/layers/init.py", line 10, in from .nms import nms File "./vc_rcnn/layers/nms.py", line 3, in from vc_rcnn import _C ImportError: cannot import name '_C' from 'vc_rcnn' (./vc_rcnn/init.py)

Wangt-CN commented 4 years ago

Sorry for the delay reply. Can you provide more exact commond? It seemed that you didn't install properly follow the install.md. Moreover, you should change the images_per_gpu x $GPUS into int value. You can also refer to the maskrcnn-benchmark issue.