/3dmesh_VAE_with_pytorch3d

3d mesh generator VAE.

Primary LanguageJupyter Notebook

Abstract

This is a 3d model generator VAE model. The following diagram show the simple architecture. I used Pytorch3d as a differential render and as shown in the figure, inputs and outputs of the model are image so simply, I used L2_loss and KL divergence for training.

simple architecture

Unfortunately, this model can't generate high quality 3d mesh, please let me know if you have any good ideas or find my mistakes.

The following figures are the generated 3d model rendering results after 100k times train loops. Top 3x5 images are input multi angel view images, bottom 3x5 images are generated 3d model rendered multi angle view images.

result

result

result

The following figures are the are generated 3d model rendered multi angle view images from sampled Z values in latent space after 100k times train loops.

result

result

result

The following figure shows the change in loss while training.

result

Setup

  • pytorch : 1.9.0+cu102
  • pytorch3d : how to setup >> official site

You can run it on google colab.

Download train datasets

I used 3d model dataset from modelnet. You can download datasets here. I used chairs 3d model dataset in 10-Class Orientation-aligned Subset.