Open little2Rabbit opened 6 years ago
I have meet the same issue.who knows? thanks .
one reseaon is that if you use docker ,you need to config workers=0.
why i have to config the workers to be 0?
一模一样的错误,请问楼主解决了吗
我觉得可能是lmdb,我就改了这个就报这个错误
我解决了,线程数改为0
modify num_work=0,it works to me. Thanks
训练时候运行crnn_main.py
cost = trainBatch(crnn, criterion, optimizer)
File "crnn_main.py", line 257, in trainBatch
data = train_iter.next()
File "/root/anaconda3/envs/xiaofengshi-train2.7/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/root/anaconda3/envs/xiaofengshi-train2.7/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
TypeError: function takes exactly 5 arguments (1 given)
Traceback (most recent call last): File "crnn_main.py", line 310, in