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

'nuscenes_infos_train.pkl' not found #15

Closed
junlee618 opened this issue Jun 14, 2022 · 11 comments
Closed

'nuscenes_infos_train.pkl' not found #15

junlee618 opened this issue Jun 14, 2022 · 11 comments

Comments

@junlee618
Copy link

I met 'nuscenes_infos_train.pkl not found' problem when creating data.

I workaround by copying following 4 files from somewhere else.
(nuscenes_infos_train.pkl
nuscenes_infos_train_mono3d.coco.json
nuscenes_infos_val.pkl
nuscenes_infos_val_mono3d.coco.json)

Is it a bug? or do I miss something?

@zhiqi-li
Copy link
Collaborator

See https://github.com/zhiqi-li/BEVFormer/blob/master/docs/prepare_dataset.md.
We use our custom anns files.

@junlee618
Copy link
Author

I use the following command to create data:
python -u tools/create_data.py nuscenes --version v1.0 --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes

and got the error:
FileNotFoundError: NuScenesDataset: [Errno 2] No such file or directory: './data/nuscenes/nuscenes_infos_train.pkl'

Does it miss the " temporal" in the last code line?

else:
info_train_path = osp.join(
out_dir, f'{info_prefix}_infos_temporal_train.pkl')
info_val_path = osp.join(
out_dir, f'{info_prefix}_infos_temporal_val.pkl')
nuscenes_converter.export_2d_annotation(
root_path, info_train_path, version=version)
nuscenes_converter.export_2d_annotation(
root_path, info_val_path, version=version)
create_groundtruth_database(dataset_name, root_path, info_prefix,
f'{out_dir}/{info_prefix}_infos_train.pkl')

@zhiqi-li
Copy link
Collaborator

Sorry for that, I removed this line create_groundtruth_database(dataset_name, root_path, info_prefix, f'{out_dir}/{info_prefix}_infos_train.pkl') because the generated files are not used.

@junlee618
Copy link
Author

Many thanks!
Create data successful on mini dataset(with can_bus also added).
Now trying on full dataset…

@oneway3124
Copy link

@junlee618 How do you create the pkl files on mini dataset?
Thanks!

@junlee618
Copy link
Author

sorry for late, I use the following command:
python -u tools/create_data.py nuscenes --version v1.0-mini --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes

@leslieburke
Copy link

@junlee618
i tried to follow your method to create pkl file,but i got:

python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes --version v1.0-mini
Traceback (most recent call last):
File "tools/create_data.py", line 10, in
from data_converter import indoor_converter as indoor
File "/home/cidi/zcl/project/BEVFormer/tools/data_converter/indoor_converter.py", line 6, in
from tools.data_converter.s3dis_data_utils import S3DISData, S3DISSegData
ModuleNotFoundError: No module named 'tools.data_converter'

do you know why?

@ZitaoWang97
Copy link

@leslieburke same problem. Have you already resolved the path issue?

@leslieburke
Copy link

@leslieburke same problem. Have you already resolved the path issue?

change the code
from tools.data_converter.s3dis_data_utils import S3DISData, S3DISSegData
to
from .s3dis_data_utils import S3DISData, S3DISSegData

@TurtleWithA100
Copy link

@leslieburke same problem. Have you already resolved the path issue?

change the code from tools.data_converter.s3dis_data_utils import S3DISData, S3DISSegData to from .s3dis_data_utils import S3DISData, S3DISSegData

No need to change the code, you can execute export PYTHONPATH="/path/to/BEVFormer/tools:$PYTHONPATH", this works for me.

@lix19937
Copy link

see #241 (comment)

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

7 participants