Skip to content

r-pad/rlbench_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8772cc4 · Jun 12, 2024

History

33 Commits
Nov 16, 2023
Feb 17, 2024
Jul 7, 2023
May 22, 2024
Feb 17, 2024
Jun 12, 2024
Jul 27, 2023
Jul 7, 2023
Jul 7, 2023
Jul 7, 2023
Nov 16, 2023
Feb 17, 2024
Jul 7, 2023

Repository files navigation

rlbench_utils

Instructions for installing RLBench

  1. Download Coppeliasim
  2. Modify your environment files
  3. Install cffi - this is a required build dependency for pyrep, and the package is not packaged properly
pip install cffi==1.14.2 wheel

# Use --no-build-isolation so that we can install pyrep from source without having to
# contaminate our filesystem with pyrep.
pip install --no-build-isolation "pyrep @ git+https://github.com/stepjam/PyRep.git"

Usage with headless mode

VGL_DISPLAY=:0.0
DISPLAY=:0.1

Here's how to collect the demos from RLBench. This will put the recording directly where you think they are.

python tools/dataset_generator.py --tasks=stack_wine,insert_onto_square_peg,phone_on_base,put_toilet_roll_on_stand --save_path="/home/beisner/datasets/rlbench" --image_size=256,256 --processes=1 --variations=1 --episodes_per_task=10 --debug

This is using my custom variation of the dataset_generator script. Find it in this fork: https://github.com/beneisner/RLBench/tree/beisner/add_custom_to_dataset_generation

Adding a new task

  1. Generate demos from the dataset generator: https://github.com/stepjam/RLBench/blob/master/tools/dataset_generator.py
python tools/dataset_generator.py --tasks=insert_onto_square_peg --save_path="/home/beisner/datasets/rlbench" --processes=10
  1. Figure out the segmentation labels for relevant objects is in each phase.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published