fundamentalvision / BEVFormer

[ECCV 2022] This is the official implementation of BEVFormer, a camera-only framework for autonomous driving perception, e.g., 3D object detection and semantic map segmentation.
https://arxiv.org/abs/2203.17270
Apache License 2.0
3.4k stars 550 forks source link

ModuleNotFoundError: No module named 'tools.data_converter' #237

Open hitbuyi opened 8 months ago

hitbuyi commented 8 months ago

When I run command to create data, the error happened

(pt110) hitbuyi@hitbuyi-Dell-G15-5511:~/PycharmProjects/pytorch_project/BEVFormer$ python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes --version v1.0 --canbus ./data
Traceback (most recent call last):
  File "tools/create_data.py", line 10, in <module>
    from data_converter import indoor_converter as indoor
  File "/home/hitbuyi/PycharmProjects/pytorch_project/BEVFormer/tools/data_converter/indoor_converter.py", line 7, in <module>
    from tools.data_converter.s3dis_data_utils import S3DISData, S3DISSegData
ModuleNotFoundError: No module named 'tools.data_converter'

my files' hierarchy as below

Screenshot from 2024-03-21 20-22-58

What caused this problem and how to solve it ?

Aurora-Legend commented 7 months ago

export PYTHONPATH=./

lix19937 commented 7 months ago

see https://github.com/fundamentalvision/BEVFormer/pull/241#issuecomment-2049094853