Spaces:
Running
Running
File size: 2,151 Bytes
9ee6f68 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | # ManiTaskGen Installation Instructions
This document provides instructions for installing and setting up the ManiTaskGen environment.
## Create and activate Conda environment
```shell
conda create -n manitaskgen python=3.10.16
conda activate manitaskgen
```
## Clone the repository
```shell
git clone https://github.com/bbbbbMatrix/ManiTaskGen.git
cd ManiTaskGen
cd src/vlm_interaction
git clone https://github.com/ManiacWallnut/VLMEvalKit.git
cd ../..
```
## Install dependencies and requirements
```shell
bash install.sh
```
## Download datasets
### AI2THOR and ReplicaCAD
```shell
cd data
mkdir datasets
cd datasets
python -m mani_skill.utils.download_asset AI2THOR
cp -r /path/to/.maniskill/data/scene_datasets/ai2thor .
python -m mani_skill.utils.download_asset ReplicaCAD
cp -r /path/to/.maniskill/data/scene_datasets/replica_cad_dataset .
cd ../..
```
Note that the dataset will be downloaded to the subfolder of maniskill module, and the absolute path will be shown after the dataset downloading command is finished.
If you have issues when downloading with maniskill, The datasets can also be downloaded from their repository on hugging-face website:
``https://huggingface.co/datasets/haosulab/AI2THOR``
``https://huggingface.co/datasets/haosulab/ReplicaCAD``
### SUNRGBD
Download from the official website: https://rgbd.cs.princeton.edu/
## Setting Up VLM APIs
We use [OpenRouter](https://openrouter.ai/) API to access both open-source and closed-source VLMs. To benchmark VLM agents, you need to set up your OpenRouter API key and model address in the configuration file or command line arguments.
Modify config in the ``common:openrouter:api_key`` column with your API key. There are multiple places in the project that call VLM for different purposes,
requiring modifications in different parts of the config. Please refer to [ReadMe.md](./ReadMe.md) for details.
For more details on using the OpenRouter API, refer to the OpenRouter [official documentation](https://openrouter.ai/docs/quickstart).
|