open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.16k stars 1.52k forks source link

s3dis数据提取错误 s3dis data extraction error #2491

Open planjio opened 1 year ago

planjio commented 1 year ago

error 我已经按照官方的指导文件放置好了s3dis数据集,但是在运行 python collect_indoor3d_data.py 指令的时候会报错,提示 FileNotFoundError: [Errno 2] No such file or directory: './s3dis_data\Stanford3dDataset_v1.2_Aligned_Version\Area_1_conferenceRoom_1_point.npy' 。 我的工作目录也切换到了 data\s3dis 目录下 image

I have placed the s3dis dataset according to the official guide file, but when running python collect_indoor3d_data.py will report an error, prompting
FileNotFoundError: [Errno 2] No such file or directory: './s3dis_data\Stanford3dDataset_v1.2_Aligned_Version\Area_1_conferenceRoom_1_point.npy' 。 I also switched my working directory to data\s3dis

mm-assistant[bot] commented 1 year ago

We recommend using English or English & Chinese for issues so that we could have broader discussion.

Vonct commented 8 months ago

same problem, did you solve it?

TheGitSlender commented 2 weeks ago

Same issue, was a solution found?

TheGitSlender commented 2 weeks ago

This is solved. The problem originates from the fact that the code was implemented for linux and not a windows machine. In collect_indoor_3d_data.py , anno_path.split('/') only splits up the string according to '/', but in windows directories we find '\ '. image A solution could be to directly change the out_filename variable to take the last 6 letters in the directory string for elements[-3], such that only Area_1, Area_2 and so on get picked up in the directory. image