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.
4 Avengers
Weather in Washington DC
-
Clone the repo
git clone https://github.com/HrushikeshBudhale/NGP_lenticular_recon.git
-
Install supported version of pytorch
-
Install dependencies
pip install -r requirements.txt
-
Add any 4 images to new folder (with roughtly same resolution) and update the
conf.yaml
file with that folder's path. -
Run the script
python train_nerf.py python test_nerf.py
-
It will save the resulting gif in current working directory.
Experiment with ImageMagicDataloader
to get the desired effect for your images.