Keypoints-of-humanpose-with-Mask-R-CNN icon indicating copy to clipboard operation
Keypoints-of-humanpose-with-Mask-R-CNN copied to clipboard

Inference Issue

Open Rubeen-Mohammad opened this issue 4 years ago • 3 comments

Hi @chrispolo! While doing Inference I'm getting the following issue:

detections, mrcnn_class, mrcnn_bbox ,mrcnn_mask, rois, rpn_class, rpn_bbox,= self.keras_model.predict([molded_images, image_metas]) ValueError: too many values to unpack (expected 7)

Can you please help me in resolving this? Thank you.

Rubeen-Mohammad avatar Nov 19 '20 11:11 Rubeen-Mohammad

hi,can you solve this problem?@Rubeen-Mohammad

xiaoxin05 avatar Jan 17 '21 16:01 xiaoxin05

Hi @xiaoxin05, Can you please try this:

detections, mrcnn_class, mrcnn_bbox, rois, rpn_class, rpn_bbox, mrcnn_mask, mrcnn_keypoint_prob = self.keras_model.predict([molded_images, image_metas], verbose=0) Thank you.

Rubeen-Mohammad avatar Jan 21 '21 10:01 Rubeen-Mohammad

hi,while i want to Inference keypoints , i cann't find this function :"model.detect_keypoint([image], verbose=1))" , it shows "cannt find declaration to go to " . somebody knows this question??? at model.py file,i cannt find detect_keypoint()

Run detection

results = model.detect_keypoint([image], verbose=1)

Jeewuu avatar Oct 27 '22 07:10 Jeewuu