Code Monkey home page Code Monkey logo

progprompt-vh's Introduction

ProgPrompt on VirtualHome

This is a modified codebase for the paper ProgPrompt: Generating Situated Robot Task Plans using Large Language Models. It contains code for replicating the results on the VirtualHome dataset. This is referenced from the Original Code Release. There were some errors in the original code release, which have been rectified in this codebase. We present our results and analysis of the project in Benchmark_Analysis.pdf, where we highlight the key issues and weaknesses, and suggest possible improvements.

Setup

We have included the setup commands in setup.sh. To execute them, run sh setup.sh. Here is an overview of the steps:

  1. Create a conda environment (or your virtualenv):
  2. conda create -n progprompt python==3.9
  3. Install dependencies:
  4. pip install -r requirements.txt
  5. Clone VirtualHome and install it by running:
  6. pip install -e .
  7. Finally, download the virtualhome unity simulator and make sure it runs. The simulator can be run either locally, or on a virtual x-server.

This was tested on VirtualHome commit f84ee28a75b23318ee1bf652862b1c993269cd06.

How to Run?

We have made a script named runs.sh, which contains all the commands used for testing the performance of the experiments in which we changed the parameters one by one. The parameters are given to the code by means of flags, as visible in runs.sh. Update the script with your openai-key. The default parameters for a baseline reference are:

  1. --gpt-version gpt-3.5-turbo-instruct
  2. --test-set test_unseen
  3. --env-id 0
  4. --prompt-task-examples default
  5. --prompt-num-examples 3
  6. --prompt-task-examples-ablation none

To run runs.sh, execute sh runs.sh.

References

[1] ProgPrompt: Homepage : Generating Situated Robot Task Plans using Large Language Models

[2] ProgPrompt: Paper : Prompting the LLM with program-like specifications of the available actions and objects in an environment to improve plan quality and admissibility.

[3] VirtualHome : an interactive platform to simulate complex household activities via programs.

Credits

A joint benchmarking and analysis effort by Aryan Dua and Gurarmaan Singh.

progprompt-vh's People

Contributors

panjete avatar tan90cot0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

skittlepox

progprompt-vh's Issues

virtuakhome simulation of this project: error: XDG_RUNTIME_DIR not set in the environment.

Thank you for your code and project.

I can run your code and generate the corresponding task planning steps. However, VirtualHome always displays a black screen.

I downloaded the virtuallhome simulator (V2.3.0) from the official website and checked out to the commit branch you mentioned, but I still encounter this error error: XDG_RUNTIME_DIR not set in the environment. .

Could you please package your VirtualHome simulator and send it to me (or share it in google cloud)? Thank you.

image

An execution error

dear friend,how to solve this problem?My operating system is win10.I already run the VirtualHome.exe when execute this command with arguments
"--progprompt-path
E:\experiment\demo\progprompt-vh-main\scripts
--expt-name
exp01
--openai-api-key
sk-Hjr********C3
--display
0
--gpt-version
gpt-3.5-turbo-instruct"

error

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.