Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 2.38 KB

README.md

File metadata and controls

69 lines (55 loc) · 2.38 KB

semanticNERF

This is an unfinished work that combines novel view synthesis (using neural randiance field) using additional semantic information. Feel free to use the code if you like it.

Slide: link

17-07-2021 (debug on CSC):

python train_GVSNETPlus.py --num_gpus 1 --dataset_name carlaGVS 
--root_dir /mnt/disk1/dataset/GVS 
--log_dir /mnt/disk1/dataset/GVS/trained_models/GVSPlus 
--SUN_path /mnt/disk1/dataset/GVS/model_epoch_29.pt 
--img_wh 256 256 --noise_std 0.1 --num_epochs 1 
--batch_size 1 --num_rays 4096 --N_importance 32 
--optimizer adam --lr 5e-4 --lr_scheduler steplr 
--decay_step 10 25 --decay_gamma 0.5 --use_disparity_loss  
--use_style_loss
--exp_name exp_GVSPlus_AlphaSampler_withoutSkip 

18-04-2021:

Starting point: Finish training code with simple style encoder (no VAE). Based on the predicted alphas of SUN model to sample more dense points. The MLP model is conditioned on (1) semantic class of that ray, (2) style encoded feature F of the entire style image.

09-05-2021:

-Pretrained SUN

-Resnet 18 encoder + Upsample blocks which include SPADE Resblock

-Homography warping to get the MPI appearance of the novel view

-Concat output of encoder (MPI appearance) with MPI semantic -> input to NERF

10-05-2021:

Predicted MPI alpha is feed to an AlphaMLP to sample a mapping from a coarse-to-dense appearance MPI -> Sample more points along the ray, rather than just 32 points of SUN network

23-05-2021:

SUN pretrained: link

Dataset:

LLFF,Blender dataset: link

Carla dataset: link

Prerequisite:

Pytorch 1.7.1
Pytorch-Lightning 1.2.0
torch_optimizer 0.1.0 
einops 0.3.0
test-tube
kornia
cv2

Training:

CARLA dataset

python main.py --dataset_name carla
--dataset_name carlaGVS 
--root_dir /media/phong/Data2TB/dataset/carlaGVSNet 
--N_importance 64 --img_wh 256 256 --noise_std 0.1 --num_epochs 16 
--batch_size 3 --num_rays 256 --N_importance 96 --optimizer adam 
--lr 4e-5 --lr_scheduler steplr --decay_step 2 4 8 12 
--decay_gamma 0.5 --exp_name exp_carla_GVS