Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytorch train error #20

Open
smowtion opened this issue Mar 15, 2020 · 1 comment
Open

pytorch train error #20

smowtion opened this issue Mar 15, 2020 · 1 comment

Comments

@smowtion
Copy link

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

@cyy53589
Copy link

Maybe you need to resize pic to 120 * 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants