Giter Site home page Giter Site logo

ha3d_simulator's Introduction

HA3D Simulator

HA3D Simulator integrates 3D human models into real-world environments. Built upon Matterport3D Simulator API and MDM, this simulator offers a robust platform for immersive 3D simulations.

Table of Contents

๐Ÿ”ง Setup Environment

First, set an environment variable to the location of the unzipped dataset. Replace <PATH> with the full absolute path to the directory containing the individual Matterport scan directories.

vim ~/.bashrc
export HA3D_SIMULATOR_DATA_PATH=/your/path/to/store/data
source ~/.bashrc
echo $HA3D_SIMULATOR_DATA_PATH

Expected directory structure:

/your/path/to/store/data
โ”œโ”€โ”€ data
โ””โ”€โ”€ human_motion_meshes

๐Ÿ Create Conda Environment

Set up a Conda environment for the simulator.

conda create --name ha3d_simulator python=3.10
conda activate ha3d_simulator
pip install -r requirements.txt

๐Ÿ“ฅ Download Dataset

To use the simulator, download the Matterport3D Dataset (access required).

python2 download_mp.py -o $HA3D_SIMULATOR_DATA_PATH/dataset --type matterport_skybox_images undistorted_camera_parameters undistorted_depth_images
python scripts/unzip_data.py

๐Ÿ”„ Dataset Preprocessing

Speed up data loading and reduce memory usage by preprocessing the matterport_skybox_images.

./scripts/downsize_skybox.py
./scripts/depth_to_skybox.py

This script downscales and combines all cube faces into a single image, resulting in filenames like <PANO_ID>_skybox_small.jpg. You can download the processed dataset directly from googledrive

๐Ÿ—๏ธ Build Matterport3D Simulator

Follow the instructions in the Matterport3DSimulator/README.

๐Ÿš€ Run HA3D Simulator

  1. test

    python driven.py
  2. In a new terminal, start the HA3D Simulator GUI:

    python GUI.py

๐Ÿ•บ Human Motion Generation

Refer to the human_motion_model/README for detailed instructions.

๐ŸŒ† Human-Scene Fusion

Refer to the human-viewpoint_pair/README for detailed instructions.

๐Ÿ–ฅ๏ธ Offscreen Rendering

Pyrender supports three backends for offscreen rendering:

  • Pyglet: Requires an active display manager.
  • OSMesa: Software renderer.
  • EGL: GPU-accelerated rendering without a display manager (default).

More details: Pyrender Offscreen Rendering

๐Ÿ“Š Training

Train the model using the following command:

python tasks/DT_miniGPT/train_GPT.py --experiment_id time --cuda 2 --reward_strategy 1 --epochs 15 --fusion_type simple --target_rtg 5 --mode train

Feel free to contribute, report issues, or request features!

Citation

@article{xxx, title={Human-Aware Vision-and-Language Navigation: Bridging Simulation to Reality with Dynamic Human Interactions}, author={Minghan Li, Heng Li, Zhi-Qi Cheng, Yifei Dong, Yuxuan Zhou, Jun-Yan He, Qi Dai, Teruko Mitamura, Alexander G Hauptmann}, journal={xxx}, year={2024} }

ha3d_simulator's People

Contributors

lpercc avatar dylanliiii avatar zhiqic avatar

Stargazers

 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.