Comments (5)
There is a non ascii character in your dataset. i also encountered the same problem. Before encoding the dataset in the Lmdb format. Make sure that you don't have any other characters beside a-z, A-Z,0-9, White space and tabs also generates errors. you can find this by printing the ascii in str2label function
from crnn.
i think it is because in your data there is characters that not in the ascii range of the net...
look it str2label and see which letters are included in the net, i think is A-Z a-z 0-9
you can add more if you want or you can delete from your data the word with the additional characters
from crnn.
@oneOfThePeople @avr248 I am getting the same error. How can I resolve this?
from crnn.
How did you fix this problem? I get something similar:
/root/torch/install/bin/luajit: bad argument #2 to '?' (out of range at /root/torch/pkg/torch/generic
/Tensor.c:700)
stack traceback:
[C]: at 0x7f434cae18f0
[C]: in function '__newindex'
./utilities.lua:66: in function 'str2label'
./DatasetLmdb.lua:116: in function 'nextBatch'
./training.lua:90: in function 'trainModel'
main_train.lua:51: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
I changed the config.lua file to reflect the number of classes in my new dataset, but the error still remains. After a few hundred iterations, it breaks out of training with this error.
from crnn.
@stalagmite7 hello,I met the same peoblem /root/torch/install/bin/luajit: bad argument #2 to '?' (out of range at /root/torch/pkg/torch/generic
/Tensor.c:700)
stack traceback:
[C]: at 0x7f434cae18f0
[C]: in function '__newindex'
./utilities.lua:66: in function 'str2label'
./DatasetLmdb.lua:116: in function 'nextBatch'
./training.lua:90: in function 'trainModel'
main_train.lua:51: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
have you solved it?
from crnn.
Related Issues (20)
- compile fbthrift in ubuntu 16.04
- Could you give me some suggestions for training dataset? HOT 1
- About BK-tree you mentioned in the paper HOT 2
- The recognition results are reversed
- 我是cpu环境咋办
- create_dataset occur something wrong
- index-pack failed
- how to generate rgb lmdb by your tools
- Estimating receptive field to feature sequence vector mapping
- lmdb.Error:../data: Function not implemented
- Nan will appear with GPU training, but not with CPU
- lmdb.Error HOT 4
- how to run this command in google colab th main_train.lua ../models/foo_model/
- Update README as some links is invalid
- Data Requirement
- which dataset I can use for crnn training ? HOT 2
- Outdated docker
- How to convert Synth900k to lmdb? HOT 1
- manifest unknown -> manifest for kaixhin/cuda-torch:latest not found: manifest unknown: manifest unknown
- Creating lmdb dataset in google colab 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 crnn.