Coder Social home page Coder Social logo

lemonsoda-rpg / opensplat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pierotofy/opensplat

0.0 0.0 0.0 722 KB

Free and open source 3D gaussian splatting in C++ ๐Ÿ’ฆ

License: GNU Affero General Public License v3.0

C++ 97.23% CMake 2.77%

opensplat's Introduction

๐Ÿ’ฆ OpenSplat

A free and open source implementation of 3D gaussian splatting written in C++, focused on being portable, lean and fast.

OpenSplat

OpenSplat takes camera poses + sparse points and computes a scene file (.ply) that can be later imported for viewing, editing and rendering in other software.

Commercial use allowed and encouraged under the terms of the AGPLv3. โœ…

Build

Requirements:

Then:

git clone https://github.com/pierotofy/OpenSplat OpenSplat
cd OpenSplat
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch/ .. && make -j$(nproc)

The software has been tested on Ubuntu 20.04 and Windows. With some changes it could run on macOS (help us by opening a PR?).

Run

To get started, download a dataset and extract it to a folder: [ banana ] [ train ] [ truck ]

Then run:

./opensplat /path/to/banana -n 2000
[...]
Wrote splat.ply

The output splat.ply can then be dragged and dropped in one of the many viewers such as https://playcanvas.com/viewer. You can also edit/cleanup the scene using https://playcanvas.com/supersplat/editor

To run on your own data, choose the path to an existing nerfstudio project. The project must have sparse points included (random initialization is not supported, see pierotofy#7). You can generate nerfstudio projects from COLMAP by using nerfstudio's ns-process-data command: https://docs.nerf.studio/quickstart/custom_dataset.html

We have plans to add support for reading COLMAP projects directly in the near future. See pierotofy#1

There's several parameters you can tune. To view the full list:

./opensplat --help

Project Goals

We recently released OpenSplat, so there's lots of work to do.

  • Support for running on AMD cards
  • Support for running on CPU-only
  • Improve speed / reduce memory usage
  • Distributed computation using multiple machines
  • Real-time training viewer output
  • Compressed scene outputs
  • Your ideas?

https://github.com/pierotofy/OpenSplat/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement

Contributing

We welcome contributions! Pull requests are welcome.

GPU Memory Notes

A single gaussian takes ~2000 bytes of memory, so currenly you need ~2GB of GPU memory for each million gaussians.

Credits

The methods used in OpenSplat are originally based on splatfacto.

License

The code in this repository, unless otherwise noted, is licensed under the AGPLv3.

The code from splatfacto is originally licensed under the Apache 2.0 license and is ยฉ 2023 The Nerfstudio Team.

opensplat's People

Contributors

pierotofy avatar pfxuan avatar disa-kizonda avatar

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.