ShuangXieIrene / ssds.pytorch

Repository for Single Shot MultiBox Detector and its variants, implemented with pytorch, python3.
MIT License
571 stars 166 forks source link

_mask doesn't get imported #27

Closed vaishnavm217 closed 5 years ago

vaishnavm217 commented 6 years ago

The _mask is not getting imported. its present in pycoco. the previous issue solved it using python3,but I am facing the same using python3. I think the issue is that this file is capable only with python 3.6 not 3.5. ( as the name itself is _mask.cpython-36m-x86_64-linux-gnu.so)

Maphist0 commented 5 years ago

I also had this problem. It seems that upgrading python from 3.5 to 3.6 would solve it. (I use anaconda. Upgrade by conda update python, ref.)

vaishnavm217 commented 5 years ago

@Maphist0 mentioned solution is the best. Or else if you are not using coco api and coco eval (custom dataset), you can just comment coco dependencies fromdataset_factory like I did.

cardoso-neto commented 5 years ago

To anyone reading this: my solution was to run pip install pycocotools and change the imports accordingly.