I have created a character mapping and split my training dataset into train, test and validation. i have made a json specification accordingly. the dataset files itself are csv files which follow the following pattern
image_filename\tlabel_text
the label text is not encoded according to its character mapping.
Traceback (most recent call last):
File "train_text_recognition.py", line 252, in <module>
test_image = validation_dataset.get_example(0)[0]
File "/app/chainer/datasets/file_dataset.py", line 142, in get_example
labels = self.get_labels(self.labels[i])
File "/app/chainer/datasets/file_dataset.py", line 158, in get_labels
labels = [int(self.reverse_char_map[ord(character)]) for character in word]
File "/app/chainer/datasets/file_dataset.py", line 158, in <listcomp>
labels = [int(self.reverse_char_map[ord(character)]) for character in word]
ValueError: invalid literal for int() with base 10: 'K'
I have created a character mapping and split my training dataset into train, test and validation. i have made a json specification accordingly. the dataset files itself are csv files which follow the following pattern
image_filename\tlabel_text
the label text is not encoded according to its character mapping.my character mapping looks something like this -
when I run
I get the following error
Please help me out. Thanks in advance.