Coder Social home page Coder Social logo

tp-net's Introduction

Flexible Networks for Learning Physical Dynamics of Deformable Objects

By Jinhyung Park, Dohae Lee, In-Kwon Lee from Yonsei University (Seoul, Korea)

To download our paper, click here.

Introduction

This repository accompanies the paper "Flexible Networks for Learning Physical Dynamics of Deformable Objects", which is currenty under review for publication.
We release the code to train, test, and visualize the result of our model.
The implementation is based on python 3.6, tensorflow 2.3.0., CUDA 10.1, and cuDNN 7.6.1

How To Run

1. Configure Environment

pip install -r requirements.txt

2-1. Download Dataset
Download each dataset from the links below.

After downloading and unzipping each dataset, place each folder as below.

data/synthetic_dataset/preprocessed_data
data/real_world_dataset/preprocessed_data

2-2 (Alternative) Generating the entire Synthetic Dataset
Alternatively, you can generate the synthetic dataset from scratch by executing the following commands.
The entire process of generating the synthetic dataset takes a couple of hours and consumes approximately 12.43GB.

python3 box2d_simulator/simulator.py                     # generates raw point set data
python3 data/simulation/preprocess_code/preprocess.py    # preprocess data

3. Train
To train TP-Net with the parameters that we used for getting the best performance, execute the following command.
You can change the hyperparameters or other training options by changing config.py.

CUDA_VISIBLE_DEVICES=0 python3 train.py

4. Evaluate & Visualize
To evaluate the trained model on test cases, run

CUDA_VISIBLE_DEVICES=0 python3 ./evaluation/evaluate_synthetic.py --init_data_type=ordered
CUDA_VISIBLE_DEVICES=0 python3 ./evaluation/evaluate_real_world.py --init_data_type=unordered

To visualize the results, run

python3 ./evaluation/visualize_synthetic.py
python3 ./evaluation/visualize_real_world.py

tp-net's People

Contributors

dependabot[bot] avatar jinhyung-park-info avatar

Watchers

 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.