Git Product home page Git Product logo

tinysplat's Introduction

tinysplat

Tinysplat is a minimal 3D Gaussian splatting implementation aiming to reach SOTA performance in training speed and accuracy on few-view indoor training tasks. It currently leverages the gsplat library developed by members of the Nerfstudio team (🙏). Tinysplat was originally written to use Tinygrad, but has since switched to PyTorch due to poor ergonomics of custom CUDA kernels in Tinygrad.

Training

Notable features:

  • Depth-guided splat regularization (in the manner of Chung et al, 2023)
  • Density regularization and mesh extraction (in the manner of Guédon & Lepetit, 2023)*
  • Real-time browser-based scene viewer
  • Image undistortion

Upcoming features:

  • Diffusion-guided splat regularization (inspired by Reconfusion)

Quickstart

  1. Prepare a dataset for 3D reconstruction, for example the SfM-processed Tanks and Temples dataset provided by INRIA's FUNGRAPH here.

  2. Start the training procedure:

    LOG_LEVEL=DEBUG python scripts/train.py --train --regularize-depth --dataset-dir=datasets/truck

    A full list of the available options can be displayed with python scripts/train.py --help.

  3. View the scene during training with a freely moving camera by launching the viewer:

    cd viewer; npx vite

    You can now navigate to http://localhost:5173, using the WASD+QE keys and mouse to explore.

* Disclaimer: Some bugs may still be present

tinysplat's People

Contributors

maxgillett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tinysplat's Issues

Package versions

Hey! Thanks for your great work. Wondering if you could specify the python requirements along with their versions.
Some packages changed apis so they won't work.
For anyone wondering, It works with the latest versions with some minor changes:

dataset.py
Change to:
quat=torch.as_tensor(img.cam_from_world.rotation.quat),

rasterize.py
Change to:
return [model.means, scales, global_scale, model.quats / model.quats.norm(dim=-1, keepdim=True), view_matrix[:3,:], proj_matrix @ view_matrix, camera.f_x, camera.f_y, c_x, c_y, img_height, img_width, 8](Choosing a block width of your liking instead of 8)

Great work!

Can you tell me if this is the final version? Or will the code continue to be uploaded after. When will you complete the project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.