HR-VITON icon indicating copy to clipboard operation
HR-VITON copied to clipboard

Not correct segmentation image

Open OliverVarnce opened this issue 2 years ago • 3 comments

I have prepared segmentation image in CIHP_PGN but when I execute it in HR-VITON I have this error:

ValueError: operands could not be broadcast together with shapes (1024,768) (1024,768,3)

OliverVarnce avatar Dec 19 '22 21:12 OliverVarnce

I guess it's because you didn't convert it to P mode

Image.open("./output/cihp_parsing_maps/00008_00_vis.png").convert('P')

lujiazho avatar Dec 28 '22 22:12 lujiazho

Yes! You are right. I have already figured out this issue. Thanks for tips.

OliverVarnce avatar Dec 29 '22 10:12 OliverVarnce

@OliverVarnce @lujiazho Is there a way to run CIHP_PGN on Google Colab, considering that the original code is written in TensorFlow 1.x and I am encountering difficulties while trying to migrate it to TensorFlow 2.x? Are there any migrated code or ideas available to help solve this problem?

MosbehBarhoumi avatar Apr 18 '23 23:04 MosbehBarhoumi