Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Part Segmentation visualization #26

Closed
fdshan opened this issue Dec 2, 2020 · 3 comments
Closed

Part Segmentation visualization #26

fdshan opened this issue Dec 2, 2020 · 3 comments

Comments

@fdshan
Copy link

fdshan commented Dec 2, 2020

Hi,
I have already go through all steps in part segmentation and I want to visualize the final results. I saw you post a really detail explanation at issue8 about how to visualize the final results. But I can not figure out where is the output file that I can know which points are from the same class. Could you please explain about how to store the class information? Sorry for ask such a silly question, I'm a beginner for this and this question actually bother me for few days : )
Thank you so much!

@antao97
Copy link
Owner

antao97 commented Dec 2, 2020

https://github.com/AnTao97/dgcnn.pytorch/blob/843abe82dd731eb51a4b3f70632c2ed3c60560e9/main_partseg.py#L240
Point clouds are processed with a batch size N=16 in test_loader. data represents point cloud data (size Nx2048x3). label represents ground-truth class label (size N) (see line 207-209 in data.py). seg represents ground-truth segment label (size Nx2048) (see line 210-211 in data.py and issue #10).

https://github.com/AnTao97/dgcnn.pytorch/blob/843abe82dd731eb51a4b3f70632c2ed3c60560e9/main_partseg.py#L252-L253
seg_np represents ground-truth segment label in numpy array (size Nx2048). pred_np represents predicted segment label in numpy array (size Nx2048).

If you want to output a single point cloud shape with predicted segment labels, select one point cloud shape in data and output corresponding segment labels in pred_np.

@fdshan
Copy link
Author

fdshan commented Dec 3, 2020

Thank you so much!!!

@antao97
Copy link
Owner

antao97 commented Jul 20, 2021

The visualization code is added in this repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants