zigma icon indicating copy to clipboard operation
zigma copied to clipboard

Can I input a image that w is not equal to the h?

Open Psw-coder opened this issue 1 year ago • 6 comments

Psw-coder avatar May 12 '24 08:05 Psw-coder

I think the image w can be not equal to h for that you can simply resize it into your preferred size. And I have a small question for you. Did you reproduce the sample result follow the faceshq1024_0060000.pt. I followed the instruction, but got corrupt pictures rather than the clean face. Thank you for your help. @66ling66 image

Hiccupwzy avatar May 14 '24 03:05 Hiccupwzy

I change this line decode and divide by 0.18215. Then the raw picture can turn to raw colorful picture. But the generated picture still be corrupted. image

Hiccupwzy avatar May 16 '24 01:05 Hiccupwzy

I change this line decode and divide by 0.18215. Then the raw picture can turn to raw colorful picture. But the generated picture still be corrupted. image

same problem. Do you solve it?

AY-Liu avatar May 16 '24 13:05 AY-Liu

Still not. But I retrained the facehq1024 using zigman8 config file. Honestly, the performance of my model is not good as that mentioned in the paper.

Hiccupwzy avatar May 17 '24 06:05 Hiccupwzy

Hi, can you try the updated code with "faceshq1024_0090000"?

We also provided the Landscape1024 checkpoint too.

dongzhuoyao avatar May 24 '24 13:05 dongzhuoyao

If the input W and H is not equal. You can try:

  1. Padding the images.
  2. implement a space-fillling curve yourself, you can get some intuition from here: https://github.com/galtay/hilbertcurve

dongzhuoyao avatar May 24 '24 13:05 dongzhuoyao