Closed kszqq closed 4 years ago
thank you very much
---Original--- From: "BADBADBADBOY"<notifications@github.com> Date: Thu, Sep 17, 2020 19:22 PM To: "BADBADBADBOY/pytorchOCR"<pytorchOCR@noreply.github.com>; Cc: "Author"<author@noreply.github.com>;"kszqq"<731891448@qq.com>; Subject: Re: [BADBADBADBOY/pytorchOCR] IndexError: list index out of range (#1)
https://github.com/BADBADBADBOY/pytorchOCR/blob/master/data/example/train_list.txt , Is your train_list.txt the same as this one, separated by \t in the middle
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
When I train, there is an error in the code:
Traceback (most recent call last): File "det_train.py", line 259, in TrainValProgram(config) File "det_train.py", line 145, in TrainValProgram train_dataset = create_module(config['trainload']['function'])(config) File "/home/z/liao/pytorchOCR-master/ptocr/dataloader/DetLoad/PANProcess.py", line 23, in init img_list, label_list = self.get_base_information(config['trainload']['train_file']) File "/home/z/liao/pytorchOCR-master/ptocr/dataloader/DetLoad/PANProcess.py", line 63, in get_base_information result = self.get_bboxes(line[1]) IndexError: list index out of range
What is the reason? Could the author please answer it?
https://github.com/BADBADBADBOY/pytorchOCR/blob/master/data/example/train_list.txt , Is your train_list.txt the same as this one, separated by \t in the middle
After that, I will update some more detailed training documents
@BADBADBADBOY What is train_list.txt in your CRNN training? Can you give me an example?
example:img_path+label, such as /src/notebooks/train/1,jpg hello , separated by \t in the middle
thank you very much!
@BADBADBADBOY When running rec_train.py, does the author have the following errors: Training from scratch.
Traceback (most recent call last):
File "rec_train.py", line 219, in
RuntimeError: Tensor for argument #2'targets' is on CPU, but expected it to be on GPU (while checking arguments for ctc_loss_gpu)
When I train, there is an error in the code:
Traceback (most recent call last): File "det_train.py", line 259, in
TrainValProgram(config)
File "det_train.py", line 145, in TrainValProgram
train_dataset = create_module(config['trainload']['function'])(config)
File "/home/z/liao/pytorchOCR-master/ptocr/dataloader/DetLoad/PANProcess.py", line 23, in init
img_list, label_list = self.get_base_information(config['trainload']['train_file'])
File "/home/z/liao/pytorchOCR-master/ptocr/dataloader/DetLoad/PANProcess.py", line 63, in get_base_information
result = self.get_bboxes(line[1])
IndexError: list index out of range
What is the reason? Could the author please answer it?