GoGoDuck912 / Self-Correction-Human-Parsing

An out-of-box human parsing representation extractor.
MIT License
1.05k stars 236 forks source link

Change display color #45

Closed Yijia-Chen closed 4 years ago

Yijia-Chen commented 4 years ago

I was wondering where I can change the colors to something different.

GoGoDuck912 commented 4 years ago

@Yijia-Chen Hi the visualization color is added to the png via color palette https://github.com/PeikeLi/Self-Correction-Human-Parsing/blob/b1ba867941b7b9e7fe92431925839aac663a5936/evaluate.py#L198.

In brief, each pixel is in the image is the label id. The display color is defined by a customized color palette.

Yijia-Chen commented 4 years ago

Thank you!