Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not find body_binary_masking.py and dataset_neck_skin_correction.py #68

Open
xqyd opened this issue May 14, 2021 · 3 comments
Open

Comments

@xqyd
Copy link

xqyd commented May 14, 2021

Hi! Can someone tell me where to find body_binary_masking.py and dataset_neck_skin_correction.py? I want to try some custom images but could not find these two. Many thanks!!!

@minar09
Copy link
Owner

minar09 commented May 15, 2021

Hi @xqyd , I removed those files as people were getting confused and the full processed dataset is already provided. Also, for custom images, if you generate segmentation with CIHP_PGN or Graphonomy, you don't need the dataset_neck_skin_correction.py. CIHP_PGN or Graphonomy already generate segmentation with the neck skin label. And for binary-masking, you can utilize the code from my another repository: https://github.com/minar09/Clothing-Matching
Hope these help! Good luck. Thanks.

@stereomatchingkiss
Copy link

stereomatchingkiss commented Sep 5, 2022

Cannot find the neck skin label from Graphonomy.
From inference.py, only 20 labels.

label_colours = [(0,0,0)
                , (128,0,0), (255,0,0), (0,85,0), (170,0,51), (255,85,0), (0,0,85), (0,119,221), (85,85,0), (0,85,85), (85,51,0), (52,86,128), (0,128,0)
                , (0,0,255), (51,170,221), (0,255,255), (85,255,170), (170,255,85), (255,255,0), (255,170,0)]


Do I miss something?

Edit : After I run the script, it do parse neck. With cmd python exp/inference/inference.py --loadmodel weights/inference.pth --img_path img/000004_0.jpg --output_path output_images --output_name result.jpg

@stereomatchingkiss
Copy link

After experiments, I find out the Graphonomy treat label 10(jumpsuit) as neck, since the model is training with 21 labels and treat label 20 as neck, I would convert label 10 of Graphonomy to label 20, hope it works this way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants