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

A issue about 12HZ data generation #126

Closed
Miayui opened this issue Dec 9, 2024 · 3 comments
Closed

A issue about 12HZ data generation #126

Miayui opened this issue Dec 9, 2024 · 3 comments

Comments

@Miayui
Copy link

Miayui commented Dec 9, 2024

When I tried to run bash scripts/ann_generator.sh 12 --ann_strategy 'interp', the terminal show

...
total samples in val: 6019 
...

After that, i tried to run python tools/create_data.py nuscenes --root-path ../data/nuscenes --out-dir ../data/nuscenes_mmdet3d-12Hz --extra-tag nuscenes_interp_12Hz --max-sweeps -1 --version interp_12Hz_trainval, the terminal show

...
total scene num: 850
exist scene num: 150
train scene: 0, val scene: 150
...

I think it means the 12HZ data generation only generate val dataset.
Though I already know you have released all the pre-generated annotations, i still hope you could share the method for generation 12HZ train dataset, since i might use my own dataset later.
Thank you so much for your great work! Looking forward to your reply!

@flymin
Copy link
Member

flymin commented Dec 9, 2024

You can find the related code here. I remember that ASAP indeed only contains the val. set by default, and manual changes have to be made in their code.

I will try to search for my old materials in the following days. In the meantime, I hope the information above helps you.

@Miayui
Copy link
Author

Miayui commented Dec 10, 2024

Thank you for your help, it's useful to me! According to your prompt:

  • I deleted all the error files that were generated earlier(it seems important, otherwise, the following changes cannot take effect)
  • I tried to change the related code to :
-----origin-------
val_scene_ids = splits['val']
-------------------
----change_to----
scene_ids = splits['train']
val_scene_ids = splits['val']
scene_ids.extend(val_scene_ids)
------------------
------------------
other 'val_scene_ids' change to 'scene_ids'
  • run bash scripts/ann_generator.sh 12 --ann_strategy 'interp'
  • run python tools/create_data.py nuscenes --root-path ../data/nuscenes --out-dir ../data/nuscenes_mmdet3d-12Hz --extra-tag nuscenes_interp_12Hz --max-sweeps -1 --version interp_12Hz_trainval and the terminal show:
...
total scene num: 850
exist scene num: 850
train scene: 700, val scene: 150
...

It works! Thank you for your help again!

@flymin
Copy link
Member

flymin commented Dec 10, 2024

Glad to hear that!

@flymin flymin pinned this issue Dec 10, 2024
@Miayui Miayui closed this as completed Dec 10, 2024
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

2 participants