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

How to use the pretrained model to test my own Lidar Scans? #62

Closed
Cxz-dev opened this issue Nov 26, 2022 · 5 comments
Closed

How to use the pretrained model to test my own Lidar Scans? #62

Cxz-dev opened this issue Nov 26, 2022 · 5 comments

Comments

@Cxz-dev
Copy link

Cxz-dev commented Nov 26, 2022

Thanks for your work!
Now I want to clean my own Lidar Scans.

  1. Use infer.py to get mos predictions label
  2. Then use utils/scan_cleaner.py to clean
    Is that right? if no, can you give me some advice? Thanks a lot!
@Chen-Xieyuanli
Copy link
Member

Thanks for using our code.

Yes, the mentioned steps are correct.
One problem you might have is that the pre-trained model may not work well with your own LiDAR data.
You may fine-tune or train a new model for your case following the training steps.

If you find our code useful, please give it a star. That will help us a lot. Thank you!

@Cxz-dev
Copy link
Author

Cxz-dev commented Nov 27, 2022

Oh ,Thanks for your reply. I will have a try!

@Cxz-dev
Copy link
Author

Cxz-dev commented Nov 27, 2022

Hi @Chen-Xieyuanli ! When I use infer.py, I have another problem.

Traceback (most recent call last):
File "infer.py", line 144, in
user = User(ARCH, DATA, FLAGS.dataset, FLAGS.log, FLAGS.model,FLAGS.split,FLAGS.uncertainty,FLAGS.monte_carlo)
File "/nas_data/chenxz/LiDAR-MOS/mos_SalsaNext/train/tasks/semantic/../../tasks/semantic/modules/user.py", line 40, in init
self.parser = parserModule.Parser(root=self.datadir,
File "../..//tasks/semantic/dataset/kitti/parser.py", line 462, in init
self.valid_dataset = SemanticKitti(root=self.root,
File "../..//tasks/semantic/dataset/kitti/parser.py", line 196, in init
assert(len(scan_files) == len(label_files))
AssertionError

I don't know the reason of using ground truth labels provided by SemantiKITTI. If I use my own data, How can I get it?

@Cxz-dev
Copy link
Author

Cxz-dev commented Nov 27, 2022

Hi @Chen-Xieyuanli ! When I use infer.py, I have another problem.

Traceback (most recent call last): File "infer.py", line 144, in user = User(ARCH, DATA, FLAGS.dataset, FLAGS.log, FLAGS.model,FLAGS.split,FLAGS.uncertainty,FLAGS.monte_carlo) File "/nas_data/chenxz/LiDAR-MOS/mos_SalsaNext/train/tasks/semantic/../../tasks/semantic/modules/user.py", line 40, in init self.parser = parserModule.Parser(root=self.datadir, File "../..//tasks/semantic/dataset/kitti/parser.py", line 462, in init self.valid_dataset = SemanticKitti(root=self.root, File "../..//tasks/semantic/dataset/kitti/parser.py", line 196, in init assert(len(scan_files) == len(label_files)) AssertionError

I don't know the reason of using ground truth labels provided by SemantiKITTI. If I use my own data, How can I get it?

Oh I know the reason. sequence 08 is a valid data. when I change to test, the problem solved.

@Chen-Xieyuanli
Copy link
Member

@Cxz-dev That's great! I'm happy that you fixed it. I will now close this issue but feel free to reopen it if you still get problems here.

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