CNN_keras icon indicating copy to clipboard operation
CNN_keras copied to clipboard

pytorch train error

Open smowtion opened this issue 5 years ago • 1 comments

Hello I have captcha and want train it

but error

result = self.forward(*input, **kwargs) File "train.py", line 38, in forward x = x.view(-1, 48 * 6 * 27) # flatten here RuntimeError: shape '[-1, 7776]' is invalid for input of size 475968

my data has : 45,595 file CHARS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'K', 'M', 'N','L','S','I', 'P', 'R', 'T', 'U', 'V', 'W', 'X', 'Y','1','2','3','4','5','6','7','8','9'] And my captcha lenght: 6 character How I can config file train.py correct thank

smowtion avatar Mar 15 '20 10:03 smowtion

Maybe you need to resize pic to 120 * 36

cyy53589 avatar Apr 18 '20 17:04 cyy53589