DMFN
DMFN copied to clipboard
512x512 image sizes
Hi! Thanks for your code before the official release! I wonder if it can work with 512x512 image sizes. I'm receiving this error: RuntimeError: The size of tensor a (16) must match the size of tensor b (32) at non-singleton dimension 3 in this line: c_u_k = sum_u_v(self.coord_x * tar) / sum_tar line 84, in calc_align_loss Can I tweak something to make it work?
change 1/8 to 1/16 in this line, you will get the correct grid number https://github.com/HannH/DMFN/blob/c12a42b2e0023bb52838afa4a14c48e4bfbe52f0/model/loss.py#L49
Now it gives different error.
Traceback (most recent call last):
File "/content/DMFN/train.py", line 45, in