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

Custom dataset #41

Open
KirillHiddleston opened this issue Aug 9, 2021 · 5 comments
Open

Custom dataset #41

KirillHiddleston opened this issue Aug 9, 2021 · 5 comments

Comments

@KirillHiddleston
Copy link

KirillHiddleston commented Aug 9, 2021

explain to me what num_planes is, where can I get it?

@niujinshuchong
Copy link
Collaborator

@KirillHiddleston Please refer to https://github.com/svip-lab/PlanarReconstruction/blob/master/main.py#L107 to prepare custom dataset.

@KirillHiddleston
Copy link
Author

sorry explain to me what "num_planes" is, where can I get it?

@niujinshuchong
Copy link
Collaborator

@KirillHiddleston num_planes is the the number of plane instances in the image.

@KirillHiddleston
Copy link
Author

shape set of image load in your npz file

image (192, 256, 3)
depth (192, 256, 1)
segmentation (192, 256, 1) index map
plane (20, 3) ?

how to get plane ? I have normal map
can u explain ?

https://github.com/art-programmer/PlaneNet
A plane is represented by three parameters and a segmentation mask. If the plane equation is nx=d where n is the surface normal and d is the plane offset, then plane parameters are nd. The plane equation is in the camera frame, where x points to the right, y points to the front, and z points to the up.

@niujinshuchong
Copy link
Collaborator

@KirillHiddleston
If you have segmentation map of plane and depth map. Then you can unproject depth map to point cloud, then you can fit the plane parameter to 3D points of this plane.

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