sergeywong / cp-vton

Reimplemented code for "Toward Characteristic-Preserving Image-based Virtual Try-On Network"
MIT License
474 stars 182 forks source link

Preprocessed image's pixel values are different #28

Open codeplay13 opened 4 years ago

codeplay13 commented 4 years ago

I'm trying to preprocess the data. I used Look-into-Person for human segmentation. As the model requires the images in "image-parse" to be of 1-channel, I saved the segmented images as grayscale images i.e. shape is (256, 192). But the problem is pixel values in my segmented images are different from the one that you get from this repo (data_download.py). It seems the author's preprocessed images in "image-parse" contains pixels with values between 0-19 only, while mine is in range of 0-255. There is some kind of mapping involved. How to map the pixel values in 0-19 range? Can anyone help me with this?