xiaoaoran / FPS-Net

Code for "FPS-Net: A convolutional fusion network for large-scale LiDAR point cloud segmentation".
MIT License
21 stars 6 forks source link

What is the structure of the dataset? #1

Closed yuyunlong2002 closed 2 years ago

yuyunlong2002 commented 2 years ago

After I downloaded the code from the website, it did get an error. The reason is that the sequences folder under my data folder is empty. I didn't see the relevant content of the dataset from the README. I want to know that this error is due to me Is it caused by not preparing the data set, and what are the requirements for the data set of the code?

xiaoaoran commented 2 years ago

Thanks for your interest in our work.

You may download SemanticKITTI from the official website and change the dataset path in the config file.

yuyunlong2002 commented 2 years ago

Hello, I have downloaded Kitti dataset and changed the path of myself.root to the storage path of the dataset in parser.py, but the following error appeared during the program running: File "/home/yuyun/anaconda3/envs/FPSNet/lib/python3.7/site-packages/torch/utils/data/ sampler.py", line 66, in init "value, but got num_samples={}".format(self.num_samples)) ValueError: num_samples should be a positive integer value, but got num_samples=0 I suspect I didn't read the Kitti dataset correctly, but I don't know what other places need to be changed based on my own path. Also, in the yaml file of the config folder I did not find the place where the data path is set, can I have more guidance?

xiaoaoran commented 2 years ago

Hi, you may need to change this line into your own path

https://github.com/xiaoaoran/FPS-Net/blob/main/train/tasks/semantic/dataset/kitti/parser.py#L9

Please feel free to contact me if any problems!

yuyunlong2002 commented 2 years ago

Thank you for your help! I solved the problem