Closed gaga0714 closed 2 months ago
I guess the shape of render-output is (c,h,w), while the shape of vgg_loss input is (n,c,h,w). Maybe you can unsqueeze the render-output before cal vgg_loss.
Many people have successfully reproduced the rendering process, so I think there is nothing wrong with the code.
Hi, when I use your model for training, there report an error:
The size of tensor a (9) must match the size of tensor b (3) at non-singleton dimension 1
I wonder if this line of code may be changed fromif input.shape[1] != 3:
toif input.shape[0] != 3:
? I really hope you can give me an answer, thank you!