Comments (8)
运行ctc_pytorch.ipynb文件下面语句时
epochs = 30
for epoch in range(1, epochs + 1):
train(model, optimizer, epoch, train_loader)
valid(model, optimizer, epoch, valid_loader)
提示:RuntimeError: DataLoader worker (pid(s) 2832, 15200, 1128, 7276, 11544, 12964, 9324, 4740, 2284, 5624, 7340, 13672) exited unexpectedly
请问如何解决
from captcha_break.
我这里运行起来没有问题,你可以尝试更新版本,pip install -U torch torchvision
from captcha_break.
@airdot 我也是同样的问题,torch是最新的1.3.1,也是这个错误,你解决了吗?
from captcha_break.
可以尝试将 num_workers 设置为 1 或者 0。
from captcha_break.
@airdot 找到了
train_loader = DataLoader(train_set, batch_size=batch_size, num_workers=12)
valid_loader = DataLoader(valid_set, batch_size=batch_size, num_workers=12)
把这两局的num_workers 设置为0就可以跑了,为1都不行
想问问这是为什么呢~o(╥﹏╥)o
from captcha_break.
@chaotianjiao
我这里跑起来没有问题,可能是 jupyter notebook 版本不一样的问题,可以尝试:
pip install -U jupyter
from captcha_break.
@ypwhs 嗯嗯,大佬,我是windows系统,winddows对torch的多线程好像有问题,就像你ISSUE里写的,大佬是在ubuntu下跑的吗?,num_workers=0 在jupyter 里才能跑, 我的jupyter=1.0.0版本
from captcha_break.
@chaotianjiao 是的,我是在 Ubuntu 18.04 下跑的。
有人对 Windows 下多进程进行了修复,你可以尝试使用他的解决方案:https://github.com/ypwhs/captcha_break/tree/master/Winpy
from captcha_break.
Related Issues (20)
- 如何把保存下来的ctc模型载入继续训练呢?
- 您可否告知下这几个文件是独立运行的吗,如何训练自己的中文验证码呢 HOT 5
- RNN分类之后, 在评估处怎么获得每个字符的概率呢 HOT 1
- 楼主您好,请问3500常用汉字的验证码识别,该模型大小够吗? HOT 5
- 多行验证码如何识别呢? HOT 4
- loss为负数且不断减小
- cannot import name '_imaging' from 'PIL'
- 变长标签怎么处理
- 如果验证码最后两位相同,似乎一定识别错误 HOT 4
- 运行winpy/main.py遇到的问题 HOT 5
- train和val的acc都可以到99%,但是eval,只有0.00265,这是怎么回事呢
- 尝试把n_class+1程序可以运行,但是不知道对不对 HOT 1
- 请问如果是不定长的验证码 可以使用吗 HOT 2
- 使用CTC, 识别时不限制4个字符长度,识别率如何? HOT 3
- CTC模型不定长输出问题 HOT 1
- 效果不理想
- 训练完了怎么用啊,纯小白 HOT 2
- cnn_2019.ipynb(防止 tensorflow 占用所有显存)tensorflow2.0要怎么改 HOT 1
- tensorflow 2.0 训练的时候 日志不显示 不知道 训练到哪一步 HOT 1
- 请问我改如何替换掉ctc_2019中的lambda方法呢 因为lambda在加载保存的模型会有错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captcha_break.