Skip to content

HrushikeshBudhale/NGP_lenticular_recon

Repository files navigation

NGP_Lenticular_Reconstruction

A fun little demo of a lenticular effect using NeRF.

By manipulating the dataloader and rays differently during training and testing in the NGP repo, we can reconstruct these interesting looking lenticular effects.

Inspired from repo gaussian-painters.

Results

Avengers reconstruction

4 Avengers

DC weather reconstruction

Weather in Washington DC

Setup

  1. Clone the repo

    git clone https://github.com/HrushikeshBudhale/NGP_lenticular_recon.git
  2. Install supported version of pytorch

  3. Install dependencies

    pip install -r requirements.txt
  4. Add any 4 images to new folder (with roughtly same resolution) and update the conf.yaml file with that folder's path.

  5. Run the script

    python train_nerf.py
    python test_nerf.py
  6. It will save the resulting gif in current working directory.

Experiment with ImageMagicDataloader to get the desired effect for your images.

About

🏞️ Artistic lenticular effect using NGP

Topics

Resources

License

Stars

Watchers

Forks

Languages