Hello
I have a question that unfortunately I could not find the answer to by searching and I hope you can help me.
my question:
When I try to start training with my non-English dataset, I get this error:
`KeyError: Caught KeyError in DataLoader worker process 2.
Original Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexes\range.py", line 385, in get_loc
return self._range.index(new_key)
ValueError: 111001 is not in range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataset.py", line 290, in getitem
return self.dataset[self.indices[idx]]
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataset.py", line 235, in getitem
return self.datasets[dataset_idx][sample_idx]
File "D:\train-error-16 mehr\16-mehr-2\EasyOCR-master\trainer\dataset.py", line 174, in getitem
img_fname = self.df.at[index,'filename']
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 2275, in getitem
return super().getitem(key)
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 2226, in getitem
return self.obj._get_value(*key, takeable=self._takeable)
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\frame.py", line 3622, in _get_value
row = self.index.get_loc(index)
File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexes\range.py", line 387, in get_loc
raise KeyError(key) from err
KeyError: 111001
Thank you for telling me the reason for this error and help me. Thanks`
Hello I have a question that unfortunately I could not find the answer to by searching and I hope you can help me. my question: When I try to start training with my non-English dataset, I get this error:
`KeyError: Caught KeyError in DataLoader worker process 2. Original Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexes\range.py", line 385, in get_loc return self._range.index(new_key) ValueError: 111001 is not in range
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\worker.py", line 302, in _worker_loop data = fetcher.fetch(index) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataset.py", line 290, in getitem return self.dataset[self.indices[idx]] File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataset.py", line 235, in getitem return self.datasets[dataset_idx][sample_idx] File "D:\train-error-16 mehr\16-mehr-2\EasyOCR-master\trainer\dataset.py", line 174, in getitem img_fname = self.df.at[index,'filename'] File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 2275, in getitem return super().getitem(key) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexing.py", line 2226, in getitem return self.obj._get_value(*key, takeable=self._takeable) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\frame.py", line 3622, in _get_value row = self.index.get_loc(index) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\indexes\range.py", line 387, in get_loc raise KeyError(key) from err KeyError: 111001
Thank you for telling me the reason for this error and help me. Thanks`