Self-Correction-Human-Parsing icon indicating copy to clipboard operation
Self-Correction-Human-Parsing copied to clipboard

Trouble using mhp_extension

Open jeremy-computervision opened this issue 5 years ago • 7 comments
trafficstars

Hi,

Thank you for your interesting work. I've been trying to use the demo.ipynb for multi human parsing but it seems that I need to create the demo_val.json when calling the function register_coco_instances. Could you explain how to use this for my own images ?

Thanks for your help,

Jeremy

jeremy-computervision avatar Sep 03 '20 13:09 jeremy-computervision

Any solution to this?

hazel0504 avatar Sep 10 '20 02:09 hazel0504

I've got the same problem. Did you solve it?

y-zheng18 avatar Oct 29 '20 15:10 y-zheng18

Any solution?

melih-unsal avatar Dec 27 '20 11:12 melih-unsal

@XuYunqiu Yunqiu, Can you help to look at this issue?

GoGoDuck912 avatar Dec 28 '20 05:12 GoGoDuck912

@melih1996 you can create a presudo coco instance label file (.json) for your own images, I think. I used mhp for inference two months ago, but I can't remember very clearly now, sorry. Maybe you can refer to mask2coco modified from human_to_coco.

Julymycin avatar Dec 28 '20 06:12 Julymycin

@melih1996 you can create a presudo coco instance label file (.json) for your own images, I think. I used mhp for inference two months ago, but I can't remember very clearly now, sorry. Maybe you can refer to mask2coco modified from human_to_coco.

@Julymycin is right. For the custom datasets, data should be converted to COCO-style, and the custom datasets should be registered. The codes for creating COCO-style annotation can be found in this folder. And the custom datasets with COCO-style annotations can be registered like following few lines https://github.com/PeikeLi/Self-Correction-Human-Parsing/blob/ebe6cebd673aa7b9373cbcf4191a0b2c965dfd70/mhp_extension/detectron2/tools/finetune_net.py#L49-L52

XuYunqiu avatar Dec 28 '20 07:12 XuYunqiu

Can you update the demo.ipynb to include these steps?

dvschultz avatar Sep 08 '21 07:09 dvschultz