cp-vton-plus icon indicating copy to clipboard operation
cp-vton-plus copied to clipboard

Weird tryon results after running CP-Viton-plus on colab - am I doing something wrong!

Open TamerElsherif opened this issue 4 years ago • 11 comments

Hi Matiur, @minar09 I tried to run the cp-vton-plus on Google colab but it gave weird result images in the folder "/cp-vton-plus/result/TOM/test/try-on" see below images. Is this the correct folder of the try on results? if not, where is the correct folder to look for try-on look? can you please help me . I am still beginner in this.

Colab implementation

cp-viton-plus-screenshot

Result images: cp-viton-plus-result 000020_0 cp-viton-plus-result 000010_0

Sample Images of /result/GMM/test/overlayed_TPS : overlayed_TPS 0000010_0

Sample Images of /result/GMM/test/result_dir : Result_dir 0000010_0

Sample Images of /result/GMM/test/warp-cloth : Warp-cloth 0000010_0

Thanks,

TamerElsherif avatar Jan 10 '21 03:01 TamerElsherif

Hi @TamerElsherif , yes, the folder seems to be the correct one for the try-on results.

However, as you can see, before running the try-on (TOM) network, you need to run the warping (GMM) network first, so that the cloth is matched to the target human body. After running GMM, copy the warp-cloth and mask results to the data directory, and then run the TOM network.

Please follow the guideline carefully for your testing. Good luck!

minar09 avatar Jan 10 '21 04:01 minar09

Hi @TamerElsherif , yes, the folder seems to be the correct one for the try-on results.

However, as you can see, before running the try-on (TOM) network, you need to run the warping (GMM) network first, so that the cloth is matched to the target human body. After running GMM, copy the warp-cloth and mask results to the data directory, and then run the TOM network.

Please follow the guideline carefully for your testing. Good luck!

Thank you for your reply @minar09 . I did it already. I got these results after running GMM, copying the warp-cloth and mask results folders to data and then I ran the TOM Can you check it on Colab link below I have shared it https://colab.research.google.com/drive/10nCk-WESMk-oDEkDIE2ATcP2AhLZ5Gqu?usp=sharing

TamerElsherif avatar Jan 11 '21 04:01 TamerElsherif

Yes, your testing process seems to be okay. Is the result still same as before? image See here, cloth is not warped. You can check if the GMM pretrained model is correctly loaded or something.

minar09 avatar Jan 11 '21 04:01 minar09

Hi @minar09 At first , I tested the model with the test images you had given , the results are really really good , appreciate you for the awesome work that you have done I am also trying on a custom data and getting similar results like @TamerElsherif I have followed all the process as given by you to try on a custom data extract the image-parse by LIPJPPNET ----> run dataset_neck_skin_connection.py ----> run body_binary_masking.py and also generated the openpose keypoints with the COCO18 model .

During testing also , I first run the GMM model and the TOM model , but still I am not getting any reasonable result . Attached here images for your reference

000048_1 000048_1 001 001 001 001 001 final try-on result 001

Thanks Trilok

trilokpadhi avatar Jan 11 '21 06:01 trilokpadhi

Hi @trilokpadhi , please check why the cloth is not warped from the GMM testing. As I mentioned above, you can check whether the GMM model is correctly loaded and stuff. If it's loading correctly, can you please post here sample GMM warping results? Thanks.

minar09 avatar Jan 11 '21 06:01 minar09

Hi @minar09 ,

can you check the below result. I think the GMM is loaded because the GMM warped image is warped a little bit, is that correct? 2021-01-17_23-24-29

What do you think i can do to make it work?

Colab instance of the project

One more question, Does the technique work for the pants, dresses, jump-suites, ans swim-suites as well?

Thanks again.

TamerElsherif avatar Jan 17 '21 21:01 TamerElsherif

Hi @TamerElsherif , can you debug by printing something to make sure that the GMM load the checkpoints correctly? It looks like it is not loaded. Regards.

thaithanhtuan avatar Jan 19 '21 10:01 thaithanhtuan

@thaithanhtuan , i found it wasn't able to load GMM file correctly. thanks a lot.

TamerElsherif avatar Jan 20 '21 09:01 TamerElsherif

@thaithanhtuan , i found it wasn't able to load GMM file correctly. thanks a lot.

what did you do to make it load the GMM file correctly?

ISL270 avatar Mar 29 '21 12:03 ISL270

Hi! can you please share the link of your custom image inference notebook?

Muaz65 avatar Jun 24 '21 23:06 Muaz65

@thaithanhtuan @TamerElsherif I am having this same issue of getting colored images. Can you please help by stating the issue and its solution?

AnjaliSinghTW avatar Apr 05 '22 03:04 AnjaliSinghTW