Skip to content

implmentation of Plenoxels radiance fields without neural networks

Notifications You must be signed in to change notification settings

DanJbk/Plenoxels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plenoxels

Inspired by Plenoxels, This project uses a collection of 2D images to generate a 3d representation of a scene on a sparse voxel grid. The project is heavily optimized to run on consumer devices and in pure pytorch, so view dependent values are not yet supported, during optimization the voxel distances are calculated using Nearest-Neighbors. genaration might take 2-10 minutes depending on hardware.

Setup

  1. Clone the repository and navigate to the root directory of the project.
  2. Download the dataset and place it in the data folder.
  3. Run pip install -r requirements.txt.
  4. Run python scripts/main.py to start the training process.

Dataset

get the NeRF-synthetic from: https://drive.google.com/drive/folders/128yBriW1IG_3NJ5Rp7APSTZsJqdJdfc1 (nerf_synthetic.zip).

Scripts

compare_inference_to_image.py

Inference of a test image with a trained grid.

main.py

runs the entire optimization process.

train.py

A script that trains the model using the provided dataset.

visulize_camera_and_grid.py

Visualizes cameras position and orientation along with the voxel grid.

visulize_grid.py

Displays and saves a 3D view of the voxel grid in an HTML file.

Saving Results

The trained model and other parameters will be saved in the src/grid_cells_trained.pth file.

About

implmentation of Plenoxels radiance fields without neural networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published