xingyuansun / pix3d

Pix3D: Dataset and Methods for Single-Image 3D Shape Modeling
http://pix3d.csail.mit.edu
497 stars 66 forks source link

Generation of Voxel #27

Open Q-Y-Yang opened 2 years ago

Q-Y-Yang commented 2 years ago

@xingyuansun @jiajunwu Thanks for your great work of Pixel3d!

I am creating a custom dataset following pixel3D to train MeshRCNN. However, I am stuck in the voxel generation from mesh using binvox software for many days.

Could you please provide more information about how to convert .binvox to .mat? I tried the method in issue 19, but it does not work. I compared the .mat file provided from pixel3d dataset with the .mat file I generated from .obj (pixel3d’s object) using binvox. They are different. I rotated 90 degree around x axis when converting model (.obj) to .binvox, because in README it says as follows: model: 3D model of the object (+x: leftward, +y: upward, +z: inward, in canonical view) voxel: voxelized 3D model (+x: leftward, +y: outward, +z: upward, in canonical view)

I would be very appreciate if you have time to reply.

xingyuansun commented 2 years ago

Hi Qiaoyue, thank you for using Pix3D! I am sorry if I did not express it clearly in #19. We did not use binvox to generate voxels in Pix3D, but some MATLAB code that was developed by one of our co-authors. Thus the voxels generated by binvox very likely will not be identical to the voxels provided by Pix3D, even after proper rotation. I believe the discussions in #19 would be very helpful in converting binvox to mat. Thanks!

grEmsIsY commented 2 years ago

@Q-Y-Yang Did you finish yet?