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
E:\daima\DB-master>python eval.py experiments/seg_detector/totaltext_resnet18_deform_thre.yaml --resume E:/daima/DB-master/models/totaltext_resnet18 --polygon --box_thresh 0.6
./datasets/total_text/
[INFO] [2024-07-03 10:09:06,691] Resuming from E:/daima/DB-master/models/totaltext_resnet18
[INFO] [2024-07-03 10:09:06,767] Resumed from E:/daima/DB-master/models/totaltext_resnet18
0%| | 0/300 [00:00<?, ?it/s]
Traceback (most recent call last):
File "eval.py", line 193, in
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\daima\DB-master\data\image_dataset.py", line 88, in getitem
main()
File "eval.py", line 79, in main
Eval(experiment, experiment_args, cmd=args, verbose=args['verbose']).eval(args['visualize'])
File "eval.py", line 172, in eval
for i, batch in tqdm(enumerate(data_loader), total=len(data_loader)):
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\tqdm\std.py", line 1181, in iter
for obj in iterable:
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 517, in next
data = self._next_data()
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 1199, in _next_data
return self._process_data(data)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 1225, in _process_data
data.reraise()
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch_utils.py", line 429, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\daima\DB-master\data\image_dataset.py", line 88, in getitem
img = cv2.imread(image_path, cv2.IMREAD_COLOR).astype('float32')
AttributeError: 'NoneType' object has no attribute 'astype'
The text was updated successfully, but these errors were encountered:
E:\daima\DB-master>python eval.py experiments/seg_detector/totaltext_resnet18_deform_thre.yaml --resume E:/daima/DB-master/models/totaltext_resnet18 --polygon --box_thresh 0.6
./datasets/total_text/
[INFO] [2024-07-03 10:09:06,691] Resuming from E:/daima/DB-master/models/totaltext_resnet18
[INFO] [2024-07-03 10:09:06,767] Resumed from E:/daima/DB-master/models/totaltext_resnet18
0%| | 0/300 [00:00<?, ?it/s]
Traceback (most recent call last):
File "eval.py", line 193, in
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\daima\DB-master\data\image_dataset.py", line 88, in getitem
main()
File "eval.py", line 79, in main
Eval(experiment, experiment_args, cmd=args, verbose=args['verbose']).eval(args['visualize'])
File "eval.py", line 172, in eval
for i, batch in tqdm(enumerate(data_loader), total=len(data_loader)):
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\tqdm\std.py", line 1181, in iter
for obj in iterable:
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 517, in next
data = self._next_data()
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 1199, in _next_data
return self._process_data(data)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data\dataloader.py", line 1225, in _process_data
data.reraise()
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch_utils.py", line 429, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda3\envs\CRAFT\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\daima\DB-master\data\image_dataset.py", line 88, in getitem
img = cv2.imread(image_path, cv2.IMREAD_COLOR).astype('float32')
AttributeError: 'NoneType' object has no attribute 'astype'
The text was updated successfully, but these errors were encountered: