namnaku87 / tree_is_all_you_need

Predicting tree deformation using GNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Tree is All You Need" : Predicting tree deformation using GNN

Mark Lee, Joe Huang, John Kim

We provide PyTorch code for our 11-785 Introduction to Deep Learning course project.

Our goal for this project is to learn the complex physics model of trees. More specifically, we want to predict the deformation of trees when an external force is applied. Obtaining a more accurate model of tree is important for the robot, as it can lead to safer and more robust manipulation in agriculture. For this purpose, we use recent advancements in Graph Neural Networks and take advantage of graph-like tree structures to learn and predict the dynamics of tree deformation. We share our custom collected synthetic dataset as well as our codebase.

Paper: Coming Soon
Video: Click Here


Prerequisites

This code is developed with Python3 (python3).
It is recommended use Anaconda to set up the environment. Install the dependencies and activate the environment tree-env with

conda env create --file requirements.yaml python=3
conda activate tree-env

Dataset

  • Synthetic data

    We collected a tree deformation dataset simulated in Isaac Gym, which can be found in the Google Drive. For convenience, you can download them with the following script: (under this repo)
    gdown --id 1YwUABOUg7ukxlmDqN1GojCtuJsZQ57J5 # download tree_dataset.zip
    unzip tree_dataset.zip
    rm -f tree_dataset.zip
    mv tree_dataset data/tree_dataset
    The data directory should contain the subdirectory tree_dataset.

Running the code

  • Training:

    python main_train.py
  • Testing:

    python main_test.py
  • Generating GIF animations:

    python main_gif.py
    All the results will be stored in the directory output/.

Code contributed and maintained by:

About

Predicting tree deformation using GNN

License:MIT License


Languages

Language:Python 100.0%