Banconxuan / RTM3D

The official PyTorch Implementation of RTM3D and KM3D for Monocular 3D Object Detection
MIT License
452 stars 85 forks source link

No such file or directory: '../kitti_format/data/kitti/annotations/kitti_val.json' #12

Open DMing11 opened 3 years ago

DMing11 commented 3 years ago

Hello @Banconxuan I got an error when I ran your code:python ./src/main.py --data_dir ./kitti_format --exp_id KM3D_res18 --arch res_18 --batch_size 32 --master_batch_size 16 --lr 1.25e-4 --gpus 0,1 --num_epochs 200

error: Traceback (most recent call last): File "/media/dming/data/RTM3D/src/main.py", line 113, in main(opt) File "/media/dming/data/RTM3D/src/main.py", line 49, in main Dataset(opt, 'val'), File "/media/dming/data/RTM3D/src/lib/datasets/dataset/kittihp.py", line 57, in init self.coco = coco.COCO(self.annot_path) File "/home/dming/anaconda3/envs/RTM3D/lib/python3.7/site-packages/pycocotools/coco.py", line 84, in init with open(annotation_file, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '../kitti_format/data/kitti/annotations/kitti_val.json'

I want to know Where did the annotation folder come from?As far as I know, there is no such directory on Kitti's official website

Many thanks!

Banconxuan commented 3 years ago

run 'python src/tools/kitti.py' to generate coco format annotations

DMing11 commented 3 years ago

many thanks!