ice-tong / pytorch-captcha Goto Github PK
View Code? Open in Web Editor NEW使用pytorch搭建cnn识别验证码
使用pytorch搭建cnn识别验证码
self.fc = nn.Linear(512x11x6, self.num_classxself.num_char)
最后的分类数为什么是36x4呢,感觉应该是36^4
File "C:/Users/sky/Desktop/tustcap/code/capcha/train.py", line 110, in
train()
File "C:/Users/sky/Desktop/tustcap/code/capcha/train.py", line 97, in train
output = cnn(img)
File "E:\anaconda\lib\site-packages\torch\nn\modules\module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "C:\Users\sky\Desktop\tustcap\code\capcha\models.py", line 40, in forward
x = self.conv(x)
File "E:\anaconda\lib\site-packages\torch\nn\modules\module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "E:\anaconda\lib\site-packages\torch\nn\modules\container.py", line 92, in forward
input = module(input)
File "E:\anaconda\lib\site-packages\torch\nn\modules\module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "E:\anaconda\lib\site-packages\torch\nn\modules\activation.py", line 99, in forward
return F.relu(input, inplace=self.inplace)
File "E:\anaconda\lib\site-packages\torch\nn\functional.py", line 943, in relu
result = torch.relu(input)
RuntimeError: CUDA out of memory. Tried to allocate 22.00 MiB (GPU 0; 2.00 GiB total capacity; 1.26 GiB already allocated; 3.15 MiB free; 31.28 MiB cached)
老大,你好,怎样才能联系到您,有事请教,谢谢
比如如果获取的是 150*60 的验证码,如何修改 CNN 模型呢?
RT,我把sess换成request后好像不太行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.