Giter VIP home page Giter VIP logo

splineposenc's Introduction

Spline Positional Encoding

This repository contains the code for our paper published in IJCAI 2021:

Install

The code has been tested on Ubuntu 16.04/18.04, please follow the following instructions to install the requirements.

  conda create --name spe python=3.7
  conda activate spe
  conda install  pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch
  pip install -r requirements.txt

Data

For the task of SDF reconstruction from a point cloud, SDF regression and image regression, please download the data from this link and then unzip it to the folder data.

For the shape space learning, please download the data from the official website of Dfaust, and extract the meshes with the code provided by Dfaust to the target folder, denoted as <dfaust_folder>. Then download the training and testing data list file from this link and unzip the list file to the folder data. After these 2 steps, run the following command to generate the data for training and testing: python scripts/dfaust.py --root_folder <dfaust_folder>

Tasks

Reconstruct SDFs from a point cloud

  • Run the following command: bash scripts/run_train_sdf.sh

Regress images

  • Run the following command: python scripts/run_regress_img.py

Regress SDFs

  • Run the following command: bash scripts/run_regress_sdf.sh

Train SDF Space

  • Run the following command: bash scripts/run_shape_space.sh. The training process is relatively slow, we provide the trained weights here.

  • Run the following command to test the trained shape space: python scripts/run_sdf_space_test.py

splineposenc's People

Contributors

microsoft-github-operations[bot] avatar microsoftopensource avatar wang-ps 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

Watchers

 avatar  avatar  avatar  avatar  avatar

splineposenc's Issues

requirements.txt is not found

this project have no requirements.txt, and it is inconvenient for reproducing. hope to upload the file soon. thanks for your work.

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.