Coder Social home page Coder Social logo

harobo's Introduction

OVMM

Installation

first checkout harobo and home-robot

git clone https://github.com/facebookresearch/home-robot.git
cd home-robot
git reset --hard 5e9fdc7b2e88899061eecf03ec68f35607f772d5 # checkout to the commit that works with existing code
cd ..

git clone --recurse-submodule https://github.com/jiaming-robot-learning/harobo.git

first create a conda environment

mamba env create -p ./.venv -f harobo/environment.yml
conda activate ./.venv
# mamba install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia


# install pytorch3d, build from source
mamba install -c fvcore -c iopath -c conda-forge fvcore iopath
pip install "git+https://github.com/facebookresearch/[email protected]"
# install vis tools for pytorch3d TODO: only required during debugging
pip install scikit-image matplotlib imageio plotly opencv-python

# install home-robot
cd home-robot
python -m pip install -e src/home_robot

# intall habitat-sim
mamba env update -f src/home_robot_sim/environment.yml 

# install habitat-lab and baseline
git submodule update --init --recursive src/third_party/habitat-lab # if not using --recurse-submodule
python -m pip install -e src/third_party/habitat-lab/habitat-lab
python -m pip install -e src/third_party/habitat-lab/habitat-baselines
python -m pip install -e src/home_robot_sim

# install detectron by build from source
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'

# checkout code, note the --recurse-submodule flag
# git clone --recurse-submodule https://github.com/jiaming-robot-learning/harobo.git

# install requirements for detic
cd .. # go to the workspace directory
pip install -r harobo/perception/detection/Detic/requirements.txt


# install torch scatter
# Ensure that at least PyTorch 1.4.0 is installed and verify that cuda/bin and cuda/include are in your $PATH and $CPATH respectively
pip install torch-scatter

Trobleshooting

ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory

We need to build pytorch3d from source

# first remove conda installed pytorch3d
mamba uninstall pytorch3d
# then install pytorch3d from source

# install necessary dependencies if they are removed when uninstalling pytorch3d
# we assume pytorch 1.13 is installed (tested with 1.13.1)
mamba install -c fvcore -c iopath -c conda-forge fvcore iopath

# IMPORTANT: don't install the following package as indicated on the pytorch3d github page!
# conda install -c bottler nvidiacub

# install pytorch3d from source
# 0.7.2 is the version that works with pytorch 1.13.1
pip install "git+https://github.com/facebookresearch/[email protected]"

harobo's People

Contributors

jiaming-ai avatar

Stargazers

Ryan Dai avatar

Watchers

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