OpenDriveLab / UniAD

[CVPR'23 Best Paper Award] Planning-oriented Autonomous Driving
Apache License 2.0
3.11k stars 335 forks source link

TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader #190

Open Reversev opened 1 month ago

Reversev commented 1 month ago

I want to eval these models, but some error was happened as fellow:

Traceback (most recent call last): File "/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg return obj_cls(*args) File "/UniAD/projects/mmdet3d_plugin/datasets/nuscenes_e2e_dataset.py", line 78, in init super().init(args, **kwargs) File "/UniAD/mmdetection3d/mmdet3d/datasets/nuscenes_dataset.py", line 131, in init super().init( File "/UniAD/mmdetection3d/mmdet3d/datasets/custom_3d.py", line 88, in init self.data_infos = self.load_annotations(open(local_path, 'rb')) File "/UniAD/projects/mmdet3d_plugin/datasets/nuscenes_e2e_dataset.py", line 152, in load_annotations data = pickle.loads(self.file_client.get(ann_file)) File "/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/fileio/file_client.py", line 1015, in get return self.client.get(filepath) File "/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/fileio/file_client.py", line 536, in get with open(filepath, 'rb') as f: TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader

Can you help me?

Reversev commented 1 month ago

input command: bash ./tools/uniad_dist_eval.sh ./projects/configs/stage1_track_map/base_track_map.py ./ckpts/uniad_base_track_map.pth 1