nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.25k stars 623 forks source link

missing so many jsons #816

Closed sainttelant closed 2 years ago

sainttelant commented 2 years ago

hello, everyone, i am so confused that when i tried to construct the instance of nusences, i inited the nusences' class by calling the init function in nuscenes.py file , however, i found there are so many json files missing on foldersof v1.0-* which i downloaded from website, namely, the lastest version of nuimages-v1.0-all-metadata.tgz, i checked the foloders on the path, these missing files really don't exist...

i installed the nuscenes-devlit version 1.1.9, but i noticed the nuscenes.py , it still tried to construct instance of nuscenes' class by __load_table__("visibilty") and ("scene:) where couldn't be found on the path

sainttelant commented 2 years ago

so, where can i download the full trainval datasets which contains visibility.json, scene.json so far??

whyekit-motional commented 2 years ago

@sainttelant your folder structure for nuScenes should look like this:

/data/sets
└── nuscenes  
    ├── maps
    │
    ├── samples
    │    ├── CAM_{BACK*, FRONT*} --> contains .png images 
    │    ├── LIDAR_TOP --> contains .bin files
    │    └── RADAR_{BACK*, FRONT*} --> contains .pcd files
    │
    ├── sweeps
    │    ├── CAM_{BACK*, FRONT*} --> contains .png images 
    │    ├── LIDAR_TOP --> contains .bin files
    │    └── RADAR_{BACK*, FRONT*} --> contains .pcd files
    │
    └── v1.0-{mini, test, trainval}       
        └── attribute.json, calibrated_sensor.json, category.json, etc. 

As you can see from the above, /data/sets/nuscenes is the folder path for dataroot (you should make this folder path on your machine, if it does not already exist) - so as long as you stick with the above folder structure, the following should work:

nusc = NuScenes(version="v1.0-mini", dataroot="/data/sets/nuscenes", verbose=False)
sainttelant commented 2 years ago

@whyekit-motional , sorry for that, you still don't solve the issue of missing files, like visibility.json, i couldn't find any folders which contain the visibility.json by manually searching on each folder. however , the nuscenes.py file still tries to __load_table__ ('visibility') on line 71. when i sorted all folders as you mentioned above.

sainttelant commented 2 years ago

@whyekit-motional self.visibility = self.__load_table__('visibility') in line 71 for nuscenes.py, it means it tries to open the visibility.json on searching the folder path, but i searched all the path, there aren't any visibility.json there

whyekit-motional commented 2 years ago

@sainttelant visibility.json should reside in the v1.0-{mini, test, trainval} folder (i.e. same folder as that which contains attribute.json, calibrated_sensor.json, category.json, etc.)

whyekit-motional commented 2 years ago

@sainttelant I also noticed one other thing - in your initial question, you mentioned that you downloaded the dataset for nuImages:

i found there are so many json files missing on foldersof v1.0-* which i downloaded from website, namely, the lastest version of nuimages-v1.0-all-metadata.tgz

However, it seems that you instantiated the NuScenes class:

i inited the nusences' class

Note that nuImages and nuScenes are different datasets, so

sainttelant commented 2 years ago

@whyekit-motional Thanks you very much, it seems that the issue has been located, i will check the folders to make them correspond correctly.