yizhiwang96 / Slice3D

Slice3D: Multi-Slice, Occlusion-Revealing, Single View 3D Reconstruction
MIT License
99 stars 8 forks source link

About ShapeNet Slicing #4

Closed fei1lee closed 1 month ago

fei1lee commented 1 month ago

Great work! I am looking to engage in joint training on the multi-category ShapeNet dataset, which includes 13 distinct categories. Could you please share the code for slicing the ShapeNet dataset?

yizhiwang96 commented 1 month ago

Thank you for your interest! I'm busy with another project so I'm unable to provide a clean code to you right now. But it is very easy to adapt the scripts in render_slices/ to work for shapenet! There will be two key changes: (1) change bpy.ops.import_scene.gltf (another place) to bpy.ops.import_scene.obj (2) use axis aligned slicing: --slice_direction set to axis.

fei1lee commented 1 month ago

Thank you for your interest! I'm busy with another project so I'm unable to provide a clean code to you right now. But it is very easy to adapt the scripts in to work for shapenet! There will be two key changes: (1) change bpy.ops.import_scene.gltf (anothe place) to (2) use axis aligned slicing: --slice_direction set to .render_slices/``bpy.ops.import_scene.obj``axis

Thank you very much for your help! I have successfully generated the input images and slice image pairs.