mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 13:54:33 +00:00
Training RuntimeError: stack expects each tensor to be equal size, but got XXX vs YYY #262
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?