Git Product home page Git Product logo

ddg's Introduction

Dataset

ShapeNet Cars: https://drive.google.com/drive/folders/1n0cDiiuA8Fj6I_ZE9HBAVM7ltxqazGzR?usp=drive_link

In train_ddgan.py change the root kwarg for ShapenetDataset to point to pxfcars_lmdb.

For other datasets, look at scripts/create_shapenet_lmdb.py or NVAE on how to create an lmdb dataset to train on.

Training

  • Embed input pose to diffusion, renderer, and discriminator:
#!/bin/bash

python train_ddgan.py --dataset cars --image_size 64 --exp triplane_exp1 --num_channels 3 --num_channels_dae 64 --ch_mult 1 1 2 2 --num_timesteps 4 \
--num_res_blocks 2 --batch_size 24 --num_epoch 1000 --ngf 64 --embedding_type positional --r1_gamma 2. \
--z_emb_dim 256 --lr_d 1e-4 --lr_g 2e-4 --lazy_reg 10  --num_process_per_node 1 --save_content --save_content_every 10 --save_ckpt_every 10 --embed_rays

Sampling

  • Create random samples facing left where pose is embedded into diffusion, renderer:
#!/bin/bash

python sample_triplane.py --dataset cars --image_size 64 --num_channels 3 --num_channels_dae 64 --ch_mult 1 1 2 2 --num_timesteps 4 --num_res_blocks 2 --batch_size 1 --embedding_type positional --z_emb_dim 256 \
--exp triplane_exp1 --random --render_from_side left --embed_rays --epoch_id 740
  • Create a render a random sample from a circular camera path:
#!/bin/bash

python sample_triplane.py --dataset cars --image_size 64 --num_channels 3 --num_channels_dae 64 --ch_mult 1 1 2 2 --num_timesteps 4 --num_res_blocks 2 --batch_size 1 --embedding_type positional --z_emb_dim 256 \
--exp triplane_exp1 --circular --embed_rays --epoch_id 740

ddg's People

Contributors

barnden avatar

Stargazers

xilongzhou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.