reading-text-in-the-wild icon indicating copy to clipboard operation
reading-text-in-the-wild copied to clipboard

RuntimeError: 'list' must be None or a list, not <class 'str'>

Open guddulrk opened this issue 7 years ago • 5 comments

Hi,

I am getting following error when running any file that uses from keras.models import model_from_json

RuntimeError: 'list' must be None or a list, not <class 'str'>

Any help please.

guddulrk avatar Sep 11 '17 05:09 guddulrk

Hey @guddulrk can you post a minimal example that replicates your error?

mathDR avatar Sep 11 '17 15:09 mathDR

Thanks mathDR. I resolved the issue..

guddulrk avatar Sep 12 '17 05:09 guddulrk

Hi mathDR, I want to train this model on my own dataset. Could you please tell me what is the purpose of 58805 after the name of the image in the annotations.txt file, such as? 1/1/1_pontifically_58805.jpg 58805

Thanks.

guddulrk avatar Sep 12 '17 06:09 guddulrk

@guddulrk That is the index to the training set corpus. So word[58805] = pontifically.

Also, if you get the training to work, I would love it if you could push a PR! (I never had the chance to implement full training). If this could happen, then we could eliminate both the matlab network AND the keras "hack" by training in keras fully from scratch.

Looking forward to it!

mathDR avatar Sep 12 '17 16:09 mathDR

Thank you so much dear mathDR. I am getting following error when running train_charnet.py file.

Exception: The generator output must be a tuple. Found: <class 'NoneType'> at: model.fit_generator(datagen.flow(batch_size=batch_size), nb_epoch=nb_epoch, samples_per_epoch = 10000, verbose=1,callbacks=[early_stopping])

guddulrk avatar Sep 13 '17 02:09 guddulrk