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

将分割后的三维模型导出成点云或者网格 #84

Open
dadaaichifan opened this issue Jun 29, 2024 · 9 comments
Open

将分割后的三维模型导出成点云或者网格 #84

dadaaichifan opened this issue Jun 29, 2024 · 9 comments

Comments

@dadaaichifan
Copy link

如题,请问有什么较好的办法吗?我尝试利用nerfstudio中ns-export方法来操作,由于自身能力限制我没有办法生成这个实验的.yml文件。所以我需要您的帮助,这将对我后续研究有很大的帮助,谢谢。

@Jumpat
Copy link
Owner

Jumpat commented Jul 1, 2024

分割好后的三维模型实际上就是以320**3的grid形式存储的,请参考lib/grids.py部分的代码。

@dadaaichifan
Copy link
Author

分割好后的三维模型实际上就是以320**3的grid形式存储的,请参考lib/grids.py 部分的代码。

请问分割好后的三维模型的网格数据在哪里导出呢?

@dadaaichifan
Copy link
Author

你好,我还是没搞懂怎么导出网格,请您再次解答一下,谢谢。

@Jumpat
Copy link
Owner

Jumpat commented Jul 5, 2024

分割好的结果是以网格形式保存的,只需要把DenseGrid中对应的变量grid取出来,但具体要导出成什么格式需要根据下游的需求自己修改并存储。

@dadaaichifan
Copy link
Author

分割好的结果是以网格形式保存的,只需要把DenseGrid中对应的变量grid取出来,但具体要导出成什么格式需要根据下游的需求自己修改并存储。
您好,感谢您的回答。我观察到grid.py文件中的DenseGrid类被多个python文件创建了实例,请问是将哪个DenseGrid实例中的grid取出来
image

@Jumpat
Copy link
Owner

Jumpat commented Jul 5, 2024

seg_dvgo和seg_dcvgo中的seg_mask_grid

@dadaaichifan
Copy link
Author

seg_dvgo和seg_dcvgo中的seg_mask_grid

您好,抱歉再次打扰您,请问直接将__init__方法中的seg_mask_grid变量直接导出成.ply文件,就是已经分割好后的三维模型了吗?
QQ_1722307613427

@dadaaichifan
Copy link
Author

请问self.seg_mask_grid 是一个可以通过 numpy 处理的体素网格数组吗?

@Jumpat
Copy link
Owner

Jumpat commented Sep 14, 2024

是的,是一个tensor,可以转换成np. array

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