You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am running the stroke-level-decomposition code,
I got the following errors. Could you please give any advice for solving the problem?
Thanks in advance!
Traceback (most recent call last):
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\train.py", line 205, in
data = dataloader.next()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next
data = self._next_data()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataset.py", line 308, in getitem
return self.datasets[dataset_idx][sample_idx]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
[Previous line repeated 982 more times]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 63, in getitem
img = Image.open(buf)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 3016, in open
im = _open_core(fp, filename, prefix, formats)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 3002, in _open_core
im = factory(fp, filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 798, in jpeg_factory
im = JpegImageFile(fp, filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\ImageFile.py", line 121, in init
self._open()
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 379, in _open
handler(self, i)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 64, in APP
n = i16(self.fp.read(2)) - 2
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL_binary.py", line 81, in i16be
return unpack_from(">H", c, o)[0]
RecursionError: maximum recursion depth exceeded while calling a Python object
The text was updated successfully, but these errors were encountered:
When I am running the stroke-level-decomposition code,
I got the following errors. Could you please give any advice for solving the problem?
Thanks in advance!
Traceback (most recent call last):
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\train.py", line 205, in
data = dataloader.next()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next
data = self._next_data()
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataset.py", line 308, in getitem
return self.datasets[dataset_idx][sample_idx]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 73, in getitem
return self[random.randint(0, len(self)-1)]
[Previous line repeated 982 more times]
File "C:\Users\Desktop\project\FudanOCR\stroke-level-decomposition\data\lmdbReader.py", line 63, in getitem
img = Image.open(buf)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 3016, in open
im = _open_core(fp, filename, prefix, formats)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 3002, in _open_core
im = factory(fp, filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 798, in jpeg_factory
im = JpegImageFile(fp, filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\ImageFile.py", line 121, in init
self._open()
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 379, in _open
handler(self, i)
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 64, in APP
n = i16(self.fp.read(2)) - 2
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL_binary.py", line 81, in i16be
return unpack_from(">H", c, o)[0]
RecursionError: maximum recursion depth exceeded while calling a Python object
The text was updated successfully, but these errors were encountered: