Git Product home page Git Product logo

py_permuto_sdf's Introduction

Permuto SDF: Pytorch Extension

An unofficial Pytorch extension for occupancy grids and volume rendering in Permuto SDF (CVPR 2023). Original repository: https://github.com/RaduAlexandru/permuto_sdf.

Install

cd py_permuto_sdf
pip install -e .

Requires Pytorch and CUDA. Tested on Pytorch version 1.12.1 + CUDA 11.3 on both Linux and Windows 10.

Usage

from py_permuto_sdf import OccupancyGrid, Sphere, RaySampler, VolumeRendering

Changes to original

Most functions and APIs keep the same as the original repo. Instead of the following changes:

# Old
occupancy_grid = OccupancyGrid(256, radius, [0, 0, 0])
# New
occupancy_grid = OccupancyGrid(256, radius, torch.tensor([0, 0, 0], dtype=torch.float, device='cuda'))

# Old
bounding_sphere = Sphere(radius, [0, 0, 0])
# New
bounding_sphere = Sphere(radius, torch.tensor([0, 0, 0], dtype=torch.float, device='cuda'))

Additional features

Some additional functionalities are extended compared to the original repo, including:

  • VolumeRendering.integrate_with_weights now supports not only 3-channel RGB, but also 1-channel depth and 16, 32, 48, 64-channel feature vectors
  • New function: OccupancyGrid::update_with_sdf_positions, which supports directly updating the SDF value in the occupancy according to the specified position

Acknowledgements

Most implementations are derived from the original repo. Thanks for Radu Alexandru's great work.

py_permuto_sdf's People

Contributors

jingsenzhu avatar

Stargazers

Shanlin Sun avatar Junliang Liu avatar Yanxu Li avatar YifanZhu avatar  avatar  avatar Yixun Liang avatar Rekkles avatar Gopal Sharma avatar  avatar Stefano Esposito avatar Aria Jamili avatar llcc avatar Hyeontae Son avatar  avatar Wooqy avatar  avatar Zizhang Li avatar

Watchers

 avatar

py_permuto_sdf's Issues

other modules need to built in docker

Thank you for your work!

I have built your extension successfully, but there are other modules that I cannot install without docker, such as easy_pbr, data_loaders and permutohedral_encoding.
Could you please teach more about this or create a repo and teach others in detail how to train the original code without docker.

Thank you so much!

Can't build on Windows

Thank you for your work!

I built py_permuto_sdf in Linux and Windows environments.

  • Linux (Colab) torch 1.13.1 cuda 11.7: Success
  • Windows 10 VS2022 torch 1.13.1 cuda 11.7: Fail
  • Windows 10 VS2022 torch 1.12.1 cuda 11.3: Fail

Can you give me more information about the environment you install in Windows?
I want to run the permuto_sdf project on Windows

Thank you very much!

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.