hologerry / Attr2Font

[SIGGRAPH 2020] Attribute2Font: Creating Fonts You Want From Attributes
https://hologerry.github.io/Attr2Font/
Other
227 stars 37 forks source link

This problem occurred at the beginning of training.... #22

Open yinminzzy opened 1 year ago

yinminzzy commented 1 year ago

ValueError: Expected more than 1 spatial element when training, got input size torch.Size([32, 165, 1, 1])

I want to ask how to solve this problem,thanks

BaldFish-Tong commented 1 year ago

I also encountered this problem, did you solve it and how did you solve it?

yinminzzy commented 1 year ago

yes....This seems to be due to the use of batch normalization, so H and W here must be numbers greater than 1.But I have forgotten where I modified it. I'm very sorry, you can debug it yourself

HRHRHRHR666 commented 1 year ago

I also encountered this problem. Can you please provide a detailed solution?

BaldFish-Tong commented 1 year ago

yes....This seems to be due to the use of batch normalization, so H and W here must be numbers greater than 1.But I have forgotten where I modified it. I'm very sorry, you can debug it yourself

Thanks, use torch 1.4 & python 3.6 solve my problem