Skip to content

ImportError: cannot import name '_mask' #410

Open
@rongxuanhong

Description

@rongxuanhong

I use pytorch-1.0 and python3.6.7,and build under conda.the process of building did't show error.but,when start to train trainval.net,it shows the following error:

File "trainval_net.py", line 27, in
from roi_data_layer.roidb import combined_roidb
File "/home/ccyoung/workspace/faster-rcnn.pytorch/lib/roi_data_layer/roidb.py", line 9, in
from datasets.factory import get_imdb
File "/home/ccyoung/workspace/faster-rcnn.pytorch/lib/datasets/factory.py", line 15, in
from datasets.coco import coco
File "/home/ccyoung/workspace/faster-rcnn.pytorch/lib/datasets/coco.py", line 23, in
from pycocotools.coco import COCO
File "/home/ccyoung/workspace/faster-rcnn.pytorch/lib/pycocotools/coco.py", line 60, in
from . import mask
File "/home/ccyoung/workspace/faster-rcnn.pytorch/lib/pycocotools/mask.py", line 3, in
from . import _mask
ImportError: cannot import name '_mask'

it seems the building problem of coco API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions