Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.25 KB

README.md

File metadata and controls

59 lines (45 loc) · 2.25 KB

OctoGibson

🏁 OmniGibson Setup

You can follow the OmniGibson Documentation to install the OmniGibson. We have successfully installed OmniGibson by installing from source.

After you successfully install the OmniGibson, run the following code to download all the assets needed for the simulation:

cd OmniGibson
python scripts/download_datasets.py

Now, you may use the scripts below to try a simple demo provided by OmniGibson to test whether the installation is correct:

python -m omnigibson.examples.scenes.scene_selector 

🏁 GPT-4 API Setup

Note that our experiments are conducted with the GPT-4 32k API provided by Azure OpenAI. As requirements are needed for GPT-4 as well as GPT-4 32k API, we strongly suggest you follow the Azure Documentation to get your own GPT-4 32k deployment.

After deploying your own GPT-4 32k API model, you may test your deployment with the code:

import os
import openai
openai.api_type = "azure"
openai.api_base = "/URL/FOR/YOUR/API/BASE" # replace it according to your deployment
openai.api_version = "YOUR API VERSION" # replace it according to your deployment
openai.api_key = "YOUR API KEY" # replace it according to your deployment

response = openai.ChatCompletion.create(
    engine="YOUR ENGINE NAME",
    messages = [{"role":"user","content":"Hello, I'm Octopus."}],
    temperature=0,
    max_tokens=8000,
    top_p=0.95,
    frequency_penalty=0,
    presence_penalty=0,
    stop=None)
print(response['choices'][0]['message']['content'])

📑 Citation

If you found this repository useful, please consider citing:

@misc{yang2023octopus,
      title={Octopus: Embodied Vision-Language Programmer from Environmental Feedback}, 
      author={Jingkang Yang and Yuhao Dong and Shuai Liu and Bo Li and Ziyue Wang and Chencheng Jiang and Haoran Tan and Jiamu Kang and Yuanhan Zhang and Kaiyang Zhou and Ziwei Liu},
      year={2023},
      eprint={2310.08588},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}