GithubHelp home page GithubHelp logo

wangxihao / instant-nk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterzs/instant-nk

0.0 0.0 0.0 1.44 MB

Instant neural tracker

License: MIT License

Shell 0.08% C++ 91.79% Python 7.30% Jupyter Notebook 0.84%

instant-nk's Introduction

Instant-NK(Instant Neural tracKer, Pytorch)

A pytorch implementation of instant-NK based on torch-ngp as described in Human Performance Modeling and Rendering via Neural Animated Mesh.

We propose a hybrid neural tracker to generate animated meshes, which combines explicit non-rigid tracking with implicit dynamic deformation in a self-supervised framework. The former provides the coarse warping back into the canonical space, while the latter implicit one further predicts the displacements using the 4D hash encoding as in our reconstructor.

Install

First, you need to set training

pip install -r requirements.txt

Tested on Ubuntu with torch 1.10.1 & CUDA 11.1 on RTX 3090.

Usage

We use the same data format as nerf and instant-ngp. To perpare the mesh for subsequent non-rigid tracking, you should run the instant-nsr or other reconstruction algorithms.

For non-rigid tracking, you can perform DynamicFusion or other non-rigid registration methods to acquire the ED nodes and motions.

First time running will take some time to compile the CUDA extensions.

Train your own models, you can run following shell:

# Instant-NSR Training
OMP_NUM_THREADS=8 CUDA_VISIBLE_DEVICES=${CUDA_DEVICE} python train_nerf.py "${INPUTS}/spider" --ed_folder "${INPUTS}/ed_folder"  --workspace "${WORKSAPCE}"    --st_frame 0 --num_image 76 --num_frames 10 --dyna_mode deform

Then, you can extract surface from the trained network model by:

# 
OMP_NUM_THREADS=8 CUDA_VISIBLE_DEVICES=${CUDA_DEVICE} python train_nerf.py "${INPUTS}/spider" --ed_folder "${INPUTS}/ed_folder"  --workspace "${WORKSAPCE}"    --st_frame 0 --num_image 76 --num_frames 10 --dyna_mode deform --test

Results

Here are some reconstruction results from our Instant-NSR code:

Acknowledgement

Our code is implemented on torch-ngp code base:

@misc{torch-ngp,
    Author = {Jiaxiang Tang},
    Year = {2022},
    Note = {https://github.com/ashawkey/torch-ngp},
    Title = {Torch-ngp: a PyTorch implementation of instant-ngp}
}
```erf_pl/},
        year = {2020},
    }
    ```
* The NeRF GUI is developed with [DearPyGui](https://github.com/hoffstadt/DearPyGui).

instant-nk's People

Contributors

nowheretrix 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.