lidar_file path: /root/autodl-tmp/project/data/KITTI/object/testing/velodyne/000204.bin lidar_file path: /root/autodl-tmp/project/data/KITTI/object/testing/velodyne/000205.bin lidar_file path: /root/autodl-tmp/project/data/KITTI/object/testing/velodyne/000206.bin lidar_file path: /root/autodl-tmp/project/data/KITTI/object/testing/velodyne/000207.bin eval: 39%|█████████████████████████████▍ | 44/112 [00:06<00:07, 8.56it/s, mode=TEST, recall=0/0, rpn_iou=0]Traceback (most recent call last): File "eval_rcnn.py", line 908, in <module> eval_single_ckpt(root_result_dir) File "eval_rcnn.py", line 771, in eval_single_ckpt eval_one_epoch(model, test_loader, epoch_id, root_result_dir, logger) File "eval_rcnn.py", line 694, in eval_one_epoch ret_dict = eval_one_epoch_rpn(model, dataloader, epoch_id, result_dir, logger) File "eval_rcnn.py", line 143, in eval_one_epoch_rpn for data in dataloader: File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ lidar_file path: /root/autodl-tmp/project/data/KITTI/object/testing/velodyne/000208.bin data = self._next_data() File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data return self._process_data(data) File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data data.reraise() File "/root/miniconda3/lib/python3.8/site-packages/torch/_utils.py", line 428, in reraise raise self.exc_type(msg) AssertionError: Caught AssertionError in DataLoader worker process 0.
时间: 2023-09-19 12:08:17 浏览: 108
FileExistsError: [Errno 17] File exists: ‘/data1/XXX/val_processed/ct/’
5星 · 资源好评率100%
根据你的信息,这个错误发生在使用 PyTorch 的 DataLoader 加载数据时。可能是由于数据集中存在错误,或者是 DataLoader 的使用方式不正确。建议检查数据集是否存在问题,同时检查 DataLoader 的参数是否正确设置。另外,你可以尝试使用 PyTorch 内置的 Dataset 类来加载数据,这样可以更加灵活地控制数据加载的过程。
阅读全文