mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-17 14:54:38 +00:00
Training RuntimeError: stack expects each tensor to be equal size, but got XXX vs YYY #264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oTree-org on GitHub (Sep 23, 2022).
Hi, thank you so much for providing this amazing framework!
I'm running training using "train_gfpgan_v1_simple.yml" with my own images, not FFHQ. They are irregularly sized .png files. Using 1 GPU.
When I launch training, I get:
Here is the traceback:
I have verified that (862, 616) is the size of one of my GT images, and (660, 472) is what it gets downsampled to in
ffhq_degradation_dataset.py. But the LQ image immediately gets upscaled back up to its original dimensions, so I don't understand how pytorch knows anything about the downscale that happened.Any ideas?
@oTree-org commented on GitHub (Sep 23, 2022):
(I tested with some FFHQ images, and this error does not seem to be happening with those.)
@oTree-org commented on GitHub (Sep 24, 2022):
Never mind; I see now that the image size is supposed to be 512 x 512.