Skip to content

Latest commit

 

History

History
96 lines (61 loc) · 4.46 KB

README.md

File metadata and controls

96 lines (61 loc) · 4.46 KB

Structure from Motion (SfM) and Neural Radiance Fields (NeRF) Project

image1 image2
NeRF SFM

This repository contains the academic project exploring computer graphics for 3D rendering with Neural Radiance Fields (NeRF) and Structure from Motion (SfM) techniques. The project was conducted as part of the RBE-549 course during the spring semester of 2023. The official university course project page can be found here.

Table of Contents

About The Project

The project was conducted from February to March 2023 and focused on applying SfM and NeRF techniques on a dataset of five images of a glass building. The primary goals of the project were:

Implement feature matching, epipolar geometry, RANSAC, visibility matrix, and bundle adjustment techniques for SfM. Develop a data loader, parser, network, and loss function for NeRF. Generate a 3D reconstruction of the scene using the combined SfM and NeRF techniques.

Repository Structure

The repository is structured as follows:

  • /NeRF: This folder contains all the source code for the Neural Radiance field, including implementations of NeRF algorithm.
  • /sfm_p: This folder contains all the source code for the Structure from Motion, including implementations of SFM algorithm.
  • /report: This folder contains the academic report documenting the project, including the methodology, experimental results, and conclusions.
  • /sfm_p/Data: This folder contains the data provided on the course project page here
  • For NeRF Please download dataset from the project pagehere or tinynerf dataset from here

Technologies

The project utilizes the following technologies:

  • NeRF: Neural Radiance Fields for volumetric scene representation.
  • SfM: Structure from Motion for estimating the 3D structure of the scene.
  • Epipolar Geometry & RANSAC: Techniques for accurate estimation of 3D points from multiple views.
  • Visibility Matrix: Method for handling occlusions in the scene reconstruction.
  • Bundle Adjustment: Technique for refining the estimates of 3D points and camera parameters.

Installation & Usage

To run the project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/Prasannanatu/sfm_and_nerf.git

Install the required dependencies. You can use the provided requirements.txt file to install the necessary packages. Run the following command:

pip install -r requirements.txt

Run the project using the provided scripts or commands. Refer to the documentation or project files for specific instructions on running the SfM and NeRF algorithms.

References

  1. Wikipedia. "Eight-point Algorithm." Link

  2. Hartley, R. and Zisserman, A. "Multiple View Geometry in Computer Vision." Second Edition, Cambridge University Press, 2003. Link

  3. Mildenhall, B., Srinivasan, P. P., Tancik, M., Barron, J. T., Ramamoorthi, R., Ng, R. "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis." ACM Transactions on Graphics (TOG), Vol. 39, No. 2, Article No. 24, 2020. Link

  4. RBE-549 Course Project Page. Link

Tags

  • Computer Graphics
  • Comupter Vision
  • 3D Reconstruction
  • Neural Radiance Fields
  • Structure from Motion
  • View Synthesis