Giter Club home page Giter Club logo

dreureka's Introduction

DrEureka: Language Model Guided Sim-to-Real Transfer

[Website] [arXiv] [PDF]

Yecheng Jason Ma1*, William Liang1*, Hung-Ju Wang1, Sam Wang1,
Yuke Zhu2,3, Linxi "Jim" Fan2, Osbert Bastani1, Dinesh Jayaraman1

1University of Pennsylvania, 2NVIDIA, 3University of Texas, Austin

*Equal Contribution

Python Version GitHub license


teaser.mp4
concept.mp4

Transferring policies learned in simulation to the real world is a promising strategy for acquiring robot skills at scale. However, sim-to-real approaches typically rely on manual design and tuning of the task reward function as well as the simulation physics parameters, rendering the process slow and human-labor intensive. In this paper, we investigate using Large Language Models (LLMs) to automate and accelerate sim-to-real design. Our LLM-guided sim-to-real approach requires only the physics simulation for the target task and automatically constructs suitable reward functions and domain randomization distributions to support real-world transfer. We first demonstrate our approach can discover sim-to-real configurations that are competitive with existing human-designed ones on quadruped locomotion and dexterous manipulation tasks. Then, we showcase that our approach is capable of solving novel robot tasks, such as quadruped balancing and walking atop a yoga ball, without iterative manual design.

Installation

This repository contains code for DrEureka's reward generation, RAPP, and domain randomization generation pipelines as well as the forward locomotion and globe walking environments. The two environments are modified from Rapid Locomotion and Dribblebot, respectively.

The following instructions will install everything under one Conda environment. We have tested on Ubuntu 20.04.

  1. Create a new Conda environment with:
    conda create -n dr_eureka python=3.8
    conda activate dr_eureka
    
  2. Install Pytorch with CUDA:
    pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
    
  3. Install IsaacGym, the simulator for forward locomotion and globe walking:
    1. Download and install IsaacGym from NVIDIA: https://developer.nvidia.com/isaac-gym.
    2. Unzip the file:
      tar -xf IsaacGym_Preview_4_Package.tar.gz
      
    3. Install the python package:
      cd isaacgym/python
      pip install -e .
      
  4. Install DrEureka:
    cd dr_eureka
    pip install -e .
    
  5. Install the forward locomotion and globe walking environments:
    cd forward_locomotion
    pip install -e .
    cd ../globe_walking
    pip install -e .
    

Usage

We'll use forward locomotion (forward_locomotion) as an example. The following steps can also be done for globe walking (globe_walking).

First, run reward generation (Eureka):

cd ../eureka
python eureka.py env=forward_locomotion

At the end, the final best reward will be saved in forward_locomotion/go1_gym/rewards/eureka_reward.py and used for subsequent training runs. The Eureka logs will be stored in eureka/outputs/[TIMESTAMP], and the run directory of the best-performing policy will be printed to terminal.

Second, copy the run directory and run RAPP:

cd ../dr_eureka
python rapp.py env=forward_locomotion run_path=[YOUR_RUN_DIRECTORY]

This will update the prompt in dr_eureka/prompts/initial_users/forward_locomotion.txt with the computed RAPP bounds.

Third, run run DR generation with the new reward and RAPP bounds:

python dr_eureka.py env=forward_locomotion

The trained policies are ready for deployment, see the section below.

Deployment

Our deployment infrastructure is based on Walk These Ways. We'll use forward locomotion as an example, though the deployment setup for both environments are essentially the same.

  1. Add the (relative) path to your checkpoint to forward_locomotion/go1_gym_deploy/scripts/deploy_policy.py. Note that you can have multiple policies at once and switch between them.
  2. Start up the Go1, and connect to it on your machine via Ethernet. Make sure you can ssh onto the NX (192.168.123.15).
  3. Put the robot into damping mode with the controller: L2+A, L2+B, L1+L2+START. The robot should be lying on the ground afterwards.
  4. Run the following to send the checkpoint and code to the Go1:
    cd forward_locomotion/go1_gym_deploy/scripts
    ./send_to_unitree.sh
    
  5. Now, ssh onto the Go1 and run the following:
    chmod +x installer/install_deployment_code.sh
    cd ~/go1_gym/go1_gym_deploy/scripts
    sudo ../installer/install_deployment_code.sh
    
  6. Make sure your Go1 is in a safe location and hung up. Start up two prompts in the Go1. In the first, run:
    cd ~/go1_gym/go1_gym_deploy/autostart
    ./start_unitree_sdk.sh
    
  7. In the second, run:
    cd ~/go1_gym/go1_gym_deploy/docker
    sudo make autostart && sudo docker exec -it foxy_controller bash
    
  8. The previous command should enter a Docker image. Within it, run:
    cd /home/isaac/go1_gym && rm -r build && python3 setup.py install && cd go1_gym_deploy/scripts && python3 deploy_policy.py
    
  9. Now, you can press R2 on the controller, and the robot should extend its legs (calibrate).
  10. Pressing R2 again will start the policy.
  11. To switch policies, press L1 or R1 to switch between policies in the list in deploy_policy.py.

Code Structure

DrEureka manipulates pre-defined environments by inserting generated reward functions and domain randomization configurations. To do so, we have designed the environment code to be modular and easily configurable. Below, we explain how the components of our code interact with each other, using forward locomotion as an example:

eureka/eureka.py runs the reward generation process. It uses:

  1. Environment source code as input to the LLM, which is at eureka/envs/forward_locomotion.py. This is a shortened version of the actual environment code to save token usage.
  2. Reward signature definition as input to the LLM, which is at eureka/prompts/reward_signatures/forward_locomotion.txt. This file should contain a simple format for the LLM to follow. It may also contain additional instructions or explanations for the format, if necessary.
  3. Location of training script, which is defined as train_script: scripts/train.py in eureka/cfg/env/forward_locomotion.yaml.
  4. Location of the reward template and output files, which are defined as reward_template_file: go1_gym/rewards/eureka_reward_template.py and reward_output_file: go1_gym/rewards/eureka_reward.py in eureka/cfg/env/forward_locomotion.yaml. Eureka reads the template file's boilerplate code, fills in the reward function, and writes to the output file for use during training.
  5. Function to extract training metrics, which is defined in eureka/utils/misc.py as construct_run_log(stdout_str). This function parses the training script's standard output into a dictionary. Alternatively, it can be used to load a file containing metrics saved during training (for example, tensorboard logs).

dr_eureka/rapp.py computes the RAPP bounds. It uses:

  1. Location of the play (evaluation) script, which is defined as play_script: scripts/play.py in dr_eureka/cfg/env/forward_locomotion.yaml.
  2. Location of the DR template and output files, which are defined as dr_template_file: go1_gym/envs/base/legged_robot_config_template.py and dr_output_file: go1_gym/envs/base/legged_robot_config.py in dr_eureka/cfg/env/forward_locomotion.yaml. Like the reward template/output setup, DrEureka fills in the boilerplate code and writes to the output file for use during evaluation.
  3. List of randomizable DR parameters, defined in the variable parameter_test_vals in dr_eureka/rapp.py.
  4. Simple success criteria for the task, defined as the function forward_locomotion_success() in dr_eureka/rapp.py.

dr_eureka/dr_eureka.py runs the DR generation process. It uses:

  1. RAPP bounds as input to the LLM, defined in dr_eureka/prompts/initial_users/forward_locomotion.txt. This uses the direct output of dr_eureka/rapp.py.
  2. Best reward function, the output of reward generation. This should be in the file defined in reward_output_file: go1_gym/rewards/eureka_reward.py.
  3. Location of the training script, same as reward generation. This is defined in dr_eureka/cfg/env/forward_locomotion.yaml.
  4. Location of the DR template and output files, same as RAPP.
  5. Function to extract training metrics, same as reward generation. Note that this is used only for a general idea of the policy's performance in simulation, and unlike reward generation, is not used for iterative feedback.

Acknowledgements

We thank the following open-sourced projects:

License

This codebase is released under MIT License.

Citation

If you find our work useful, please consider citing us!

@inproceedings{ma2024dreureka,
    title   = {DrEureka: Language Model Guided Sim-To-Real Transfer},
    author  = {Yecheng Jason Ma and William Liang and Hungju Wang and Sam Wang and Yuke Zhu and Linxi Fan and Osbert Bastani and Dinesh Jayaraman}
    year    = {2024},
  booktitle = {Robotics: Science and Systems (RSS)}
}

dreureka's People

Contributors

johnny-wang16 avatar jasonma2016 avatar

Stargazers

Tingrui Zhang avatar  avatar  avatar  avatar Lei He avatar JunYoung Kim avatar Andrew Luo avatar  avatar Feng DING avatar  avatar Johannes Ackermann avatar DevZoe avatar Takuya Hiraoka avatar mk avatar  avatar Nahyun Kwon avatar  avatar Chuan Qin avatar zhangga avatar  avatar  avatar allen.hu avatar Haonan Liu avatar ramune avatar  avatar 计算机1805-高一峰-20182339 avatar Haotian Wang avatar  avatar ZhaoYinghao avatar Chen Sirui Eric avatar XiaoFan Zhang avatar Jack avatar Ambrose avatar Baturalp Kiziltan avatar mymy avatar  avatar  avatar wj avatar  avatar  avatar  avatar Gao Hao (高浩) avatar Jeremy Shelton avatar  avatar Yue Hu avatar 汪龙浩 avatar  avatar Aditya Khedekar avatar Ruoxiang LI avatar Nikolaus Schlemm avatar freeman avatar Tatsuya Kamijo avatar Zach Kelling avatar  avatar LiamNg avatar  avatar huizongsong avatar MR avatar RyansabeUber avatar Horikawaer avatar MustafaFauke avatar JiachenSmith avatar WalmesZeviani avatar seasonstaris avatar Peihong avatar Ondrej Biza avatar  avatar songtaizui avatar SriHarshaxi avatar  avatar Quantao Yang avatar YinkaOmole avatar AnQreiShikov avatar CahyaWirawan avatar BenjamSanchez avatar Keshawn Smith avatar SeanPorteres avatar AlexLaFroscias avatar ZachNation avatar LuausDalmolin avatar anshiwang2 avatar  avatar  avatar Chenxi Han avatar PaulCampbells avatar Lujia Jin avatar Zixu Zhao avatar aliyasineser2 avatar OcenKanlan avatar yuhuangfadi avatar MatheusVidiga avatar DanielLiebesk avatar JasowLIuWu avatar MustafaFiser avatar ShenyuHuang avatar JasoreKuhrt avatar sundouzis avatar Harshit SIngh avatar AntonHvornum avatar arturs-krapans avatar

Watchers

Han Zhang avatar Matt Shaffer avatar Peter Lai avatar Tatsuya Matsushima avatar Neo Ee Sian avatar Ram Kumar Koppu avatar Matt Shaffer avatar Fabio Pacifici avatar AutismCode avatar Leizo avatar

dreureka's Issues

FileNotFoundError: [Errno 2] No such file or directory: 'gpustat'

(dr_eureka) chuan@chuan-ubuntu:~/Downloads/Github Projetcs/DrEureka/eureka$ python eureka.py env=forward_locomotion
[2024-06-26 19:32:44,510][root][INFO] - Workspace: /home/chuan/Downloads/Github Projetcs/DrEureka/eureka/outputs/eureka/2024-06-26_19-32-44
[2024-06-26 19:32:44,510][root][INFO] - Project Root: /home/chuan/Downloads/Github Projetcs/DrEureka/eureka
[2024-06-26 19:32:44,510][root][INFO] - Using LLM: gpt-4-0125-preview
[2024-06-26 19:32:44,510][root][INFO] - Task: Forward Locomotion
[2024-06-26 19:32:44,510][root][INFO] - Task description: To make the go1 quadruped run forward with a velocity of exactly 2.0 m/s in the positive x direction of the global coordinate frame. The policy will be trained in simulation and deployed in the real world, so the policy should be as steady and stable as possible with minimal action rate. Specifically, as it's running, the torso should remain near a z position of 0.34, and the orientation should be perpendicular to gravity. Also, the legs should move smoothly and avoid the DOF limits.
[2024-06-26 19:32:44,510][root][INFO] - Iteration 0: Generating 16 samples with gpt-4-0125-preview
[2024-06-26 19:34:49,752][root][INFO] - Iteration 0: Prompt Tokens: 1869, Completion Tokens: 9491, Total Tokens: 16967
[2024-06-26 19:34:49,753][root][INFO] - Iteration 0: Processing Code Run 0
Error executing job with overrides: ['env=forward_locomotion']
Traceback (most recent call last):
File "eureka.py", line 160, in main
set_freest_gpu()
File "/home/chuan/Downloads/Github Projetcs/DrEureka/eureka/utils/misc.py", line 9, in set_freest_gpu
freest_gpu = get_freest_gpu()
File "/home/chuan/Downloads/Github Projetcs/DrEureka/eureka/utils/misc.py", line 14, in get_freest_gpu
sp = subprocess.Popen(['gpustat', '--json'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/chuan/anaconda3/envs/dr_eureka/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/chuan/anaconda3/envs/dr_eureka/lib/python3.8/subprocess.py", line 1720, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gpustat'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Sim-to-real deployment help/questions

Hi, I had a few questions about the sim-to-real deployment for the globe_walking task.

We deployed the globe_walking/runs/globe_walking/dr_eureka_best in the real world with a Unitree Go1 Edu on a 85cm yoga ball and I was unable to reproduce the results shown in the video.

During deployment of python3 deploy_policy.py there is a calibration phase and then an execution phase, and we had a few questions about what happens during the calibration phase:

About to calibrate; the robot will stand [Press R2 to calibrate]
frq: 0.16061135416996541 Hz
Starting pose calibrated [Press R2 to start controller]
frq: 1.4131690123998784 Hz
frq: 49.76984597859364 Hz
frq: 49.75980828320936 Hz
About to calibrate; the robot will stand [Press R2 to calibrate]
Starting pose calibrated [Press R2 to start controller]

Questions:

  1. Could you share the process on how you got the robot to balance on the yoga ball during the calibration phase? It was very unstable and we had to hold the yoga ball in place before we hit R2 the second time. We had a dog leash setup similar to whats shown in the video, but we found that we could only pull back on the robot but could not push it forward to keep it stabilized. When we ran the controller, the robot could not stay on for more than 1 second.
  2. Is the policy checkpoint committed here the best policy you were able to achieve? Is there another updated policy you trained with your methods that you could share? We tried training our own policy using the methods here and could not achieve the average 10 seconds of stability reported in the paper.

Running `python eureka.py env=forward_locomotion` produces `All iterations of code generation failed, aborting...`

python eureka.py env=forward_locomotion
[2024-05-07 05:06:14,160][root][INFO] - Workspace: /media/sda1/repos/DrEureka/eureka/outputs/eureka/2024-05-07_05-06-14
[2024-05-07 05:06:14,160][root][INFO] - Project Root: /media/sda1/repos/DrEureka/eureka
[2024-05-07 05:06:14,160][root][INFO] - Using LLM: gpt-4-0125-preview
[2024-05-07 05:06:14,160][root][INFO] - Task: Forward Locomotion
[2024-05-07 05:06:14,160][root][INFO] - Task description: To make the go1 quadruped run forward with a velocity of exactly 2.0 m/s in the positive x direction of the global coordinate frame. The policy will be trained in simulation and deployed in the real world, so the policy should be as steady and stable as possible with minimal action rate. Specifically, as it's running, the torso should remain near a z position of 0.34, and the orientation should be perpendicular to gravity. Also, the legs should move smoothly and avoid the DOF limits.
[2024-05-07 05:06:14,160][root][INFO] - Iteration 0: Generating 16 samples with gpt-4-0125-preview
[2024-05-07 05:08:24,559][root][INFO] - Iteration 0: Prompt Tokens: 1869, Completion Tokens: 10106, Total Tokens: 17582
[2024-05-07 05:08:24,560][root][INFO] - Iteration 0: Processing Code Run 0
[2024-05-07 05:08:26,985][root][INFO] - Iteration 0: Code Run 0 execution error!
[2024-05-07 05:08:26,985][root][INFO] - Iteration 0: Processing Code Run 1
[2024-05-07 05:08:27,785][root][INFO] - Iteration 0: Code Run 1 execution error!
[2024-05-07 05:08:27,785][root][INFO] - Iteration 0: Processing Code Run 2
[2024-05-07 05:08:28,588][root][INFO] - Iteration 0: Code Run 2 execution error!
[2024-05-07 05:08:28,588][root][INFO] - Iteration 0: Processing Code Run 3
[2024-05-07 05:08:29,385][root][INFO] - Iteration 0: Code Run 3 execution error!
[2024-05-07 05:08:29,385][root][INFO] - Iteration 0: Processing Code Run 4
[2024-05-07 05:08:30,185][root][INFO] - Iteration 0: Code Run 4 execution error!
[2024-05-07 05:08:30,185][root][INFO] - Iteration 0: Processing Code Run 5
[2024-05-07 05:08:30,989][root][INFO] - Iteration 0: Code Run 5 execution error!
[2024-05-07 05:08:30,990][root][INFO] - Iteration 0: Processing Code Run 6
[2024-05-07 05:08:31,792][root][INFO] - Iteration 0: Code Run 6 execution error!
[2024-05-07 05:08:31,792][root][INFO] - Iteration 0: Processing Code Run 7
[2024-05-07 05:08:32,601][root][INFO] - Iteration 0: Code Run 7 execution error!
[2024-05-07 05:08:32,601][root][INFO] - Iteration 0: Processing Code Run 8
[2024-05-07 05:08:33,423][root][INFO] - Iteration 0: Code Run 8 execution error!
[2024-05-07 05:08:33,424][root][INFO] - Iteration 0: Processing Code Run 9
[2024-05-07 05:08:34,219][root][INFO] - Iteration 0: Code Run 9 execution error!
[2024-05-07 05:08:34,220][root][INFO] - Iteration 0: Processing Code Run 10
[2024-05-07 05:08:35,018][root][INFO] - Iteration 0: Code Run 10 execution error!
[2024-05-07 05:08:35,018][root][INFO] - Iteration 0: Processing Code Run 11
[2024-05-07 05:08:35,832][root][INFO] - Iteration 0: Code Run 11 execution error!
[2024-05-07 05:08:35,832][root][INFO] - Iteration 0: Processing Code Run 12
[2024-05-07 05:08:36,636][root][INFO] - Iteration 0: Code Run 12 execution error!
[2024-05-07 05:08:36,636][root][INFO] - Iteration 0: Processing Code Run 13
[2024-05-07 05:08:37,441][root][INFO] - Iteration 0: Code Run 13 execution error!
[2024-05-07 05:08:37,441][root][INFO] - Iteration 0: Processing Code Run 14
[2024-05-07 05:08:38,243][root][INFO] - Iteration 0: Code Run 14 execution error!
[2024-05-07 05:08:38,243][root][INFO] - Iteration 0: Processing Code Run 15
[2024-05-07 05:08:39,045][root][INFO] - Iteration 0: Code Run 15 execution error!
[2024-05-07 05:08:39,088][root][INFO] - All code generation failed! Repeat this iteration from the current message checkpoint!
[2024-05-07 05:08:39,088][root][INFO] - Iteration 1: Generating 16 samples with gpt-4-0125-preview
[2024-05-07 05:11:03,542][root][INFO] - Iteration 1: Prompt Tokens: 1869, Completion Tokens: 9472, Total Tokens: 16948
[2024-05-07 05:11:03,542][root][INFO] - Iteration 1: Processing Code Run 0
[2024-05-07 05:11:05,938][root][INFO] - Iteration 1: Code Run 0 execution error!
[2024-05-07 05:11:05,938][root][INFO] - Iteration 1: Processing Code Run 1
[2024-05-07 05:11:06,721][root][INFO] - Iteration 1: Code Run 1 execution error!
[2024-05-07 05:11:06,721][root][INFO] - Iteration 1: Processing Code Run 2
[2024-05-07 05:11:07,509][root][INFO] - Iteration 1: Code Run 2 execution error!
[2024-05-07 05:11:07,510][root][INFO] - Iteration 1: Processing Code Run 3
[2024-05-07 05:11:08,297][root][INFO] - Iteration 1: Code Run 3 execution error!
[2024-05-07 05:11:08,297][root][INFO] - Iteration 1: Processing Code Run 4
[2024-05-07 05:11:09,083][root][INFO] - Iteration 1: Code Run 4 execution error!
[2024-05-07 05:11:09,083][root][INFO] - Iteration 1: Processing Code Run 5
[2024-05-07 05:11:09,873][root][INFO] - Iteration 1: Code Run 5 execution error!
[2024-05-07 05:11:09,874][root][INFO] - Iteration 1: Processing Code Run 6
[2024-05-07 05:11:10,661][root][INFO] - Iteration 1: Code Run 6 execution error!
[2024-05-07 05:11:10,661][root][INFO] - Iteration 1: Processing Code Run 7
[2024-05-07 05:11:11,453][root][INFO] - Iteration 1: Code Run 7 execution error!
[2024-05-07 05:11:11,453][root][INFO] - Iteration 1: Processing Code Run 8
[2024-05-07 05:11:12,239][root][INFO] - Iteration 1: Code Run 8 execution error!
[2024-05-07 05:11:12,240][root][INFO] - Iteration 1: Processing Code Run 9
[2024-05-07 05:11:13,033][root][INFO] - Iteration 1: Code Run 9 execution error!
[2024-05-07 05:11:13,033][root][INFO] - Iteration 1: Processing Code Run 10
[2024-05-07 05:11:13,821][root][INFO] - Iteration 1: Code Run 10 execution error!
[2024-05-07 05:11:13,821][root][INFO] - Iteration 1: Processing Code Run 11
[2024-05-07 05:11:14,599][root][INFO] - Iteration 1: Code Run 11 execution error!
[2024-05-07 05:11:14,599][root][INFO] - Iteration 1: Processing Code Run 12
[2024-05-07 05:11:15,391][root][INFO] - Iteration 1: Code Run 12 execution error!
[2024-05-07 05:11:15,391][root][INFO] - Iteration 1: Processing Code Run 13
[2024-05-07 05:11:16,172][root][INFO] - Iteration 1: Code Run 13 execution error!
[2024-05-07 05:11:16,172][root][INFO] - Iteration 1: Processing Code Run 14
[2024-05-07 05:11:16,953][root][INFO] - Iteration 1: Code Run 14 execution error!
[2024-05-07 05:11:16,953][root][INFO] - Iteration 1: Processing Code Run 15
[2024-05-07 05:11:17,751][root][INFO] - Iteration 1: Code Run 15 execution error!
[2024-05-07 05:11:17,799][root][INFO] - All code generation failed! Repeat this iteration from the current message checkpoint!
[2024-05-07 05:11:17,799][root][INFO] - Iteration 2: Generating 16 samples with gpt-4-0125-preview
[2024-05-07 05:13:17,426][root][INFO] - Iteration 2: Prompt Tokens: 1869, Completion Tokens: 9150, Total Tokens: 16626
[2024-05-07 05:13:17,427][root][INFO] - Iteration 2: Processing Code Run 0
[2024-05-07 05:13:19,835][root][INFO] - Iteration 2: Code Run 0 execution error!
[2024-05-07 05:13:19,835][root][INFO] - Iteration 2: Processing Code Run 1
[2024-05-07 05:13:20,658][root][INFO] - Iteration 2: Code Run 1 execution error!
[2024-05-07 05:13:20,658][root][INFO] - Iteration 2: Processing Code Run 2
[2024-05-07 05:13:21,463][root][INFO] - Iteration 2: Code Run 2 execution error!
[2024-05-07 05:13:21,463][root][INFO] - Iteration 2: Processing Code Run 3
[2024-05-07 05:13:22,269][root][INFO] - Iteration 2: Code Run 3 execution error!
[2024-05-07 05:13:22,270][root][INFO] - Iteration 2: Processing Code Run 4
[2024-05-07 05:13:23,075][root][INFO] - Iteration 2: Code Run 4 execution error!
[2024-05-07 05:13:23,076][root][INFO] - Iteration 2: Processing Code Run 5
[2024-05-07 05:13:23,881][root][INFO] - Iteration 2: Code Run 5 execution error!
[2024-05-07 05:13:23,881][root][INFO] - Iteration 2: Processing Code Run 6
[2024-05-07 05:13:24,688][root][INFO] - Iteration 2: Code Run 6 execution error!
[2024-05-07 05:13:24,689][root][INFO] - Iteration 2: Processing Code Run 7
[2024-05-07 05:13:25,492][root][INFO] - Iteration 2: Code Run 7 execution error!
[2024-05-07 05:13:25,492][root][INFO] - Iteration 2: Processing Code Run 8
[2024-05-07 05:13:26,299][root][INFO] - Iteration 2: Code Run 8 execution error!
[2024-05-07 05:13:26,300][root][INFO] - Iteration 2: Processing Code Run 9
[2024-05-07 05:13:27,117][root][INFO] - Iteration 2: Code Run 9 execution error!
[2024-05-07 05:13:27,118][root][INFO] - Iteration 2: Processing Code Run 10
[2024-05-07 05:13:27,942][root][INFO] - Iteration 2: Code Run 10 execution error!
[2024-05-07 05:13:27,942][root][INFO] - Iteration 2: Processing Code Run 11
[2024-05-07 05:13:28,724][root][INFO] - Iteration 2: Code Run 11 execution error!
[2024-05-07 05:13:28,725][root][INFO] - Iteration 2: Processing Code Run 12
[2024-05-07 05:13:29,531][root][INFO] - Iteration 2: Code Run 12 execution error!
[2024-05-07 05:13:29,531][root][INFO] - Iteration 2: Processing Code Run 13
[2024-05-07 05:13:30,339][root][INFO] - Iteration 2: Code Run 13 execution error!
[2024-05-07 05:13:30,339][root][INFO] - Iteration 2: Processing Code Run 14
[2024-05-07 05:13:31,151][root][INFO] - Iteration 2: Code Run 14 execution error!
[2024-05-07 05:13:31,152][root][INFO] - Iteration 2: Processing Code Run 15
[2024-05-07 05:13:31,960][root][INFO] - Iteration 2: Code Run 15 execution error!
[2024-05-07 05:13:32,006][root][INFO] - All code generation failed! Repeat this iteration from the current message checkpoint!
[2024-05-07 05:13:32,007][root][INFO] - Iteration 3: Generating 16 samples with gpt-4-0125-preview
[2024-05-07 05:15:24,831][root][INFO] - Iteration 3: Prompt Tokens: 1869, Completion Tokens: 9374, Total Tokens: 16850
[2024-05-07 05:15:24,831][root][INFO] - Iteration 3: Processing Code Run 0
[2024-05-07 05:15:27,229][root][INFO] - Iteration 3: Code Run 0 execution error!
[2024-05-07 05:15:27,229][root][INFO] - Iteration 3: Processing Code Run 1
[2024-05-07 05:15:28,028][root][INFO] - Iteration 3: Code Run 1 execution error!
[2024-05-07 05:15:28,029][root][INFO] - Iteration 3: Processing Code Run 2
[2024-05-07 05:15:28,842][root][INFO] - Iteration 3: Code Run 2 execution error!
[2024-05-07 05:15:28,842][root][INFO] - Iteration 3: Processing Code Run 3
[2024-05-07 05:15:29,652][root][INFO] - Iteration 3: Code Run 3 execution error!
[2024-05-07 05:15:29,653][root][INFO] - Iteration 3: Processing Code Run 4
[2024-05-07 05:15:30,458][root][INFO] - Iteration 3: Code Run 4 execution error!
[2024-05-07 05:15:30,458][root][INFO] - Iteration 3: Processing Code Run 5
[2024-05-07 05:15:31,272][root][INFO] - Iteration 3: Code Run 5 execution error!
[2024-05-07 05:15:31,272][root][INFO] - Iteration 3: Processing Code Run 6
[2024-05-07 05:15:32,094][root][INFO] - Iteration 3: Code Run 6 execution error!
[2024-05-07 05:15:32,095][root][INFO] - Iteration 3: Processing Code Run 7
[2024-05-07 05:15:32,902][root][INFO] - Iteration 3: Code Run 7 execution error!
[2024-05-07 05:15:32,903][root][INFO] - Iteration 3: Processing Code Run 8
[2024-05-07 05:15:33,723][root][INFO] - Iteration 3: Code Run 8 execution error!
[2024-05-07 05:15:33,723][root][INFO] - Iteration 3: Processing Code Run 9
[2024-05-07 05:15:34,525][root][INFO] - Iteration 3: Code Run 9 execution error!
[2024-05-07 05:15:34,525][root][INFO] - Iteration 3: Processing Code Run 10
[2024-05-07 05:15:35,318][root][INFO] - Iteration 3: Code Run 10 execution error!
[2024-05-07 05:15:35,318][root][INFO] - Iteration 3: Processing Code Run 11
[2024-05-07 05:15:36,151][root][INFO] - Iteration 3: Code Run 11 execution error!
[2024-05-07 05:15:36,151][root][INFO] - Iteration 3: Processing Code Run 12
[2024-05-07 05:15:36,956][root][INFO] - Iteration 3: Code Run 12 execution error!
[2024-05-07 05:15:36,956][root][INFO] - Iteration 3: Processing Code Run 13
[2024-05-07 05:15:37,759][root][INFO] - Iteration 3: Code Run 13 execution error!
[2024-05-07 05:15:37,760][root][INFO] - Iteration 3: Processing Code Run 14
[2024-05-07 05:15:38,568][root][INFO] - Iteration 3: Code Run 14 execution error!
[2024-05-07 05:15:38,568][root][INFO] - Iteration 3: Processing Code Run 15
[2024-05-07 05:15:39,367][root][INFO] - Iteration 3: Code Run 15 execution error!
[2024-05-07 05:15:39,411][root][INFO] - All code generation failed! Repeat this iteration from the current message checkpoint!
[2024-05-07 05:15:39,411][root][INFO] - Iteration 4: Generating 16 samples with gpt-4-0125-preview
[2024-05-07 05:17:21,182][root][INFO] - Iteration 4: Prompt Tokens: 1869, Completion Tokens: 9034, Total Tokens: 16510
[2024-05-07 05:17:21,183][root][INFO] - Iteration 4: Processing Code Run 0
[2024-05-07 05:17:23,575][root][INFO] - Iteration 4: Code Run 0 execution error!
[2024-05-07 05:17:23,575][root][INFO] - Iteration 4: Processing Code Run 1
[2024-05-07 05:17:24,385][root][INFO] - Iteration 4: Code Run 1 execution error!
[2024-05-07 05:17:24,386][root][INFO] - Iteration 4: Processing Code Run 2
[2024-05-07 05:17:25,205][root][INFO] - Iteration 4: Code Run 2 execution error!
[2024-05-07 05:17:25,206][root][INFO] - Iteration 4: Processing Code Run 3
[2024-05-07 05:17:26,005][root][INFO] - Iteration 4: Code Run 3 execution error!
[2024-05-07 05:17:26,005][root][INFO] - Iteration 4: Processing Code Run 4
[2024-05-07 05:17:26,812][root][INFO] - Iteration 4: Code Run 4 execution error!
[2024-05-07 05:17:26,812][root][INFO] - Iteration 4: Processing Code Run 5
[2024-05-07 05:17:27,636][root][INFO] - Iteration 4: Code Run 5 execution error!
[2024-05-07 05:17:27,636][root][INFO] - Iteration 4: Processing Code Run 6
[2024-05-07 05:17:28,448][root][INFO] - Iteration 4: Code Run 6 execution error!
[2024-05-07 05:17:28,448][root][INFO] - Iteration 4: Processing Code Run 7
[2024-05-07 05:17:29,253][root][INFO] - Iteration 4: Code Run 7 execution error!
[2024-05-07 05:17:29,253][root][INFO] - Iteration 4: Processing Code Run 8
[2024-05-07 05:17:30,072][root][INFO] - Iteration 4: Code Run 8 execution error!
[2024-05-07 05:17:30,073][root][INFO] - Iteration 4: Processing Code Run 9
[2024-05-07 05:17:30,877][root][INFO] - Iteration 4: Code Run 9 execution error!
[2024-05-07 05:17:30,878][root][INFO] - Iteration 4: Processing Code Run 10
[2024-05-07 05:17:31,684][root][INFO] - Iteration 4: Code Run 10 execution error!
[2024-05-07 05:17:31,684][root][INFO] - Iteration 4: Processing Code Run 11
[2024-05-07 05:17:32,511][root][INFO] - Iteration 4: Code Run 11 execution error!
[2024-05-07 05:17:32,511][root][INFO] - Iteration 4: Processing Code Run 12
[2024-05-07 05:17:33,312][root][INFO] - Iteration 4: Code Run 12 execution error!
[2024-05-07 05:17:33,313][root][INFO] - Iteration 4: Processing Code Run 13
[2024-05-07 05:17:34,116][root][INFO] - Iteration 4: Code Run 13 execution error!
[2024-05-07 05:17:34,116][root][INFO] - Iteration 4: Processing Code Run 14
[2024-05-07 05:17:34,946][root][INFO] - Iteration 4: Code Run 14 execution error!
[2024-05-07 05:17:34,947][root][INFO] - Iteration 4: Processing Code Run 15
[2024-05-07 05:17:35,755][root][INFO] - Iteration 4: Code Run 15 execution error!
[2024-05-07 05:17:35,799][root][INFO] - All code generation failed! Repeat this iteration from the current message checkpoint!
[2024-05-07 05:17:35,799][root][INFO] - All iterations of code generation failed, aborting...
[2024-05-07 05:17:35,799][root][INFO] - Please double check the output env_iter*_response*.txt files for repeating errors!

"extras_require" error

tried to install in DrEureka/globe_walking:

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

problem of dr_eureka, when `pip install -e .`

(dr_eureka) saka@saka-System-Product-Name:~/DrEureka/DrEureka/dr_eureka$ pip install -e .
Obtaining file:///home/saka/DrEureka/DrEureka/dr_eureka
ERROR: file:///home/saka/DrEureka/DrEureka/dr_eureka does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0

══════════════════════════════════════════
job
────────────────────┬─────────────────────
status │ running
runTime │ 2024-07-12 13:00:48.145913
════════════════════╧═════════════════════
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
[Error] [carb.gym.plugin] GetCameraImage: image pointer is nullptr 0
image

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.