czq142857 / IM-NET-pytorch

PyTorch 1.2 implementation of IM-NET.
Other
197 stars 27 forks source link

Visualizing voxel grid #9

Closed supriya-gdptl closed 3 years ago

supriya-gdptl commented 3 years ago

Hello @czq142857, Thanks for sharing the code. I would like to visualize the input and output voxel grids that are used to train IM-NET autoencoder. Preferably, renderings of all voxels grids. Could you please tell me what Python package you used to do this?

Thanks

czq142857 commented 3 years ago

Hi,

To obtain meshes from voxels, I used PyMCubes.

Note that PyMCubes uses Marching Cubes, which extracts the iso-surface implied by the voxels, not the voxels themselves. Therefore, the results are smooth. If you want the results to be made of cubes representing voxels, I do not know a Python package to do that.

For rendering, I used 3ds Max, not a Python package but rather a professional software. You can also use blender, a free version.

You may also try Marching Cubes in scikit-image: https://scikit-image.org/docs/dev/auto_examples/edges/plot_marching_cubes.html

Best, Zhiqin

supriya-gdptl commented 3 years ago

Sure, will try your suggestion. Thank you for the help!