Superlee506 / Mask_RCNN_Humanpose

Mask R-CNN for Human Pose Estimation on Keras and TensorFlow.
Other
189 stars 36 forks source link

when I run inference_humanose.ipynb, the error is "from pycocotools import mask as maskUtils ImportError: No module named 'pycocotools'"? #3

Closed hdjsjyl closed 6 years ago

hdjsjyl commented 6 years ago

Hi, thanks for your code. It is very nice. I meet a problem, when I run inference_humanpose.ipynb: and I do not find the file pycocotools, any advice will be appreciated. Thank you very much.


ImportError Traceback (most recent call last)

in () 8 import matplotlib.pyplot as plt 9 ---> 10 import coco 11 import utils 12 import model as modellib ~/Downloads/Mask_RCNN_Humanpose-master/coco.py in () 38 # If the PR is merged then use the original repo. 39 # Note: Edit PythonAPI/Makefile and replace "python" with "python3". ---> 40 from pycocotools.coco import COCO 41 from pycocotools.cocoeval import COCOeval 42 from pycocotools import mask as maskUtils ImportError: No module named 'pycocotools'
Superlee506 commented 6 years ago

@hdjsjyl Hi, thanks for your interest, you can download the pretrained model here: https://github.com/Superlee506/Mask_RCNN_Humanpose/releases

hdjsjyl commented 6 years ago

@Superlee506 , thanks for your reply. I solved this problem. Actually, I want to fit human pose estimation part to facial landmarks. Do you think it is reasonable? Can you give me some advice? Any advice will be appreciated. Thanks

Superlee506 commented 6 years ago

@hdjsjyl For facial landmarks detection, you should firstly change the bbox head for face detecation rather than human detection. Secondly, change the keypoint head for face.

hdjsjyl commented 6 years ago

@Superlee506 , thanks for your advice. I will read your code line by line. Thank you very much.

hdjsjyl commented 6 years ago

@Superlee506 , Now I have changed segmentation part for keypoint detection. But I found that rcnnL1Loss will be very big such as 234677418896143419441152.0000 from beginning. Do you know what is the reason? Any advice will be appreciated. Thank you.

Superlee506 commented 6 years ago

@hdjsjyl pycocotools is a third-party package for operating the coco dataset. You can install it as described in https://github.com/cocodataset/cocoapi