buxiangzhiren / Asymmetric_VQGAN

MIT License
222 stars 9 forks source link

inference error #12

Open Bobby-youngking opened 6 months ago

Bobby-youngking commented 6 months ago

when i'm using a photo of my own(1080p), it gives me an error RuntimeError: The size of tensor a (640) must match the size of tensor b (1920) at non-singleton dimension 3

buxiangzhiren commented 6 months ago

You should change the H, W. If you use the 1080 1080 resolution, you should resize your image to 512 512 or changing the H, W into 1080 * 1080.