Code Monkey home page Code Monkey logo

Comments (5)

HidayatRahman avatar HidayatRahman commented on August 17, 2024 2

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.

oneOfThePeople avatar oneOfThePeople commented on August 17, 2024 1

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.

rayush7 avatar rayush7 commented on August 17, 2024

@oneOfThePeople @avr248 I am getting the same error. How can I resolve this?

from crnn.

stalagmite7 avatar stalagmite7 commented on August 17, 2024

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.

guohao1995 avatar guohao1995 commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.