Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can nuScenes-Mini be used to train? #38

Closed
qrzeffort opened this issue Aug 3, 2021 · 8 comments
Closed

Can nuScenes-Mini be used to train? #38

qrzeffort opened this issue Aug 3, 2021 · 8 comments

Comments

@qrzeffort
Copy link

When I trained with nuscene mini (5.4gb) according to the steps in readme, an error occurs:

python convert_nuScenes.py

FileNotFoundError: [Errno 2] No such file or directory: '../../data/nuscenes/samples/RADAR_FRONT_RIGHT/n015-2018-07-18-11-07-57+0800__RADAR_FRONT_RIGHT__1531883530444336.pcd'

I later tried to add meta-trainval to the dataset, but it's useless.
Now,I am not sure what happened. Can someone give me some suggestions?
Thank you!

@fabrizioschiano
Copy link
Contributor

fabrizioschiano commented Oct 4, 2021

@qrzeffort , I have the same error. What did you do that made you close the issue? Did you download the metadata folder and some of the file blobs?
like in the following screenshot?
image

Did it work then?

@fabrizioschiano
Copy link
Contributor

I solved this issue. You need to make sure that you extract:

  • v1.0-trainval01_blobs.tgz (I am trying to use only a subset of the whole dataset),
  • v1.0-mini.tgz
    Then, you need to make sure that the folders CenterFusion/data/nuscenes/samples and CenterFusion/data/nuscenes/sweeps contain all the files from the folders v1.0-mini/ and v1.0-trainval01_blobs/.

Instead, I hade this error because, I had put the sweeps and samples only of the v1.0-mini/ extracted folder.

@fabrizioschiano
Copy link
Contributor

I now have the same issue with the test split.

reordering images
val 5484 images 32721 boxes
out_path ../../data/nuscenes/annotations_6sweeps/val.json
Traceback (most recent call last):
  File "convert_nuScenes.py", line 340, in <module>
    main()
  File "convert_nuScenes.py", line 95, in main
    nusc = NuScenes(
  File "/home/fabrizioschiano/.virtualenvs/centerfusion/lib/python3.8/site-packages/nuscenes/nuscenes.py", line 62, in __init__
    assert osp.exists(self.table_root), 'Database version not found: {}'.format(self.table_root)
AssertionError: Database version not found: ../../data/nuscenes/v1.0-test

I am therefore downloading the related file
image

@heyiping-go
Copy link

I solved this issue. You need to make sure that you extract:

  • v1.0-trainval01_blobs.tgz (I am trying to use only a subset of the whole dataset),
  • v1.0-mini.tgz
    Then, you need to make sure that the folders CenterFusion/data/nuscenes/samples and CenterFusion/data/nuscenes/sweeps contain all the files from the folders v1.0-mini/ and v1.0-trainval01_blobs/.

Instead, I hade this error because, I had put the sweeps and samples only of the v1.0-mini/ extracted folder.

when i did like above,then,i have a new problem
Traceback (most recent call last):
File "convert_nuScenes.py", line 433, in
main()
File "convert_nuScenes.py", line 152, in main
sample, radar_channel, sensor_name, NUM_SWEEPS)
File "/media/heyiping/新加卷1/papers/radar/sensors-fusion/CenterFusion/src/tools/../lib/utils/pointcloud.py", line 116, in from_file_multisweep
current_pc = cls.from_file(osp.join(nusc.dataroot, current_sd_rec['filename']))
File "/home/heyiping/software/anaconda3/envs/centerfusion/lib/python3.7/site-packages/nuscenes/utils/data_classes.py", line 386, in from_file
with open(file_name, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../../data/nuscenes/samples/RADAR_FRONT_RIGHT/n015-2018-08-01-16-32-59+0800__RADAR_FRONT_RIGHT__1533112388227413.pcd'
please how to solve it?

@zhuyongWillem
Copy link

I solved this issue. You need to make sure that you extract:

  • v1.0-trainval01_blobs.tgz (I am trying to use only a subset of the whole dataset),
  • v1.0-mini.tgz
    Then, you need to make sure that the folders CenterFusion/data/nuscenes/samples and CenterFusion/data/nuscenes/sweeps contain all the files from the folders v1.0-mini/ and v1.0-trainval01_blobs/.

Instead, I hade this error because, I had put the sweeps and samples only of the v1.0-mini/ extracted folder.

I have confirmed that the folders CenterFusion/data/nuscenes/samples and CenterFusion/data/nuscenes/sweeps contain all the files from the folders v1.0-mini/ and v1.0-trainval01_blobs/.

However, I meet a new problem, FileNotFoundError: [Errno 2] No such file or directory: '../../data/nuscenes/samples/RADAR_FRONT_RIGHT/n015-2018-08-01-16-32-59+0800__RADAR_FRONT_RIGHT__1533112388227413.pcd'

Can you help me? thank you very much

@fabrizioschiano
Copy link
Contributor

Hi @zhuyongWillem , it seems that you don't have the file '../../data/nuscenes/samples/RADAR_FRONT_RIGHT/n015-2018-08-01-16-32-59+0800__RADAR_FRONT_RIGHT__1533112388227413.pcd' in the correct folder. Are you sure that you extracted the files well as I pointed out here?

@zhuyongWillem
Copy link

err

Yes, I‘m sure that I extracted the all files from 'v1.0-trainval01_blobs.tgz' and 'v1.0-mini.tgz', but still had FileNotFoundError. Can you share me your folders?

Thank you very much

@fabrizioschiano
Copy link
Contributor

Sorry for my late reply @zhuyongWillem

Attached is a zip file with my folder structure

tree_printed.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants