Datasets:
Improve dataset card for EC-Diffuser: Add robotics task, links, description, and comprehensive sample usage
Browse filesThis PR significantly improves the dataset card for the `EC-Diffuser` dataset by:
- Adding the `task_categories` metadata set to `robotics`, improving discoverability.
- Including relevant `tags` such as `multi-object-manipulation`, `diffusion-models`, `behavioral-cloning`, and `object-centric` for better categorization.
- Providing a clear description of the dataset and the EC-Diffuser approach.
- Adding direct links to the associated Hugging Face paper (https://huggingface.co/papers/2412.18907), the project website (https://sites.google.com/view/ec-diffuser), and the GitHub code repository (https://github.com/carl-qi/EC-Diffuser).
- Incorporating a comprehensive "Sample Usage" section, directly sourced from the project's GitHub README, which includes steps for environment setup ("Installation"), "Downloading Datasets", "Evaluating a Pretrained Agent", and "Training an Agent" to help users get started quickly.
|
@@ -1,3 +1,120 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
tags:
|
| 6 |
+
- multi-object-manipulation
|
| 7 |
+
- diffusion-models
|
| 8 |
+
- behavioral-cloning
|
| 9 |
+
- object-centric
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# EC-Diffuser Dataset
|
| 13 |
+
|
| 14 |
+
This repository contains the datasets, pretrained agents, and Deep Latent Predictor (DLP) representations for the paper [EC-Diffuser: Multi-Object Manipulation via Entity-Centric Behavior Generation](https://huggingface.co/papers/2412.18907).
|
| 15 |
+
|
| 16 |
+
EC-Diffuser proposes a novel behavioral cloning (BC) approach that leverages object-centric representations and an entity-centric Transformer with diffusion-based optimization. This enables efficient learning from offline image data for multi-object manipulation tasks, leading to substantial performance improvements and compositional generalization to novel object configurations and goals.
|
| 17 |
+
|
| 18 |
+
* **Paper:** [EC-Diffuser: Multi-Object Manipulation via Entity-Centric Behavior Generation](https://huggingface.co/papers/2412.18907)
|
| 19 |
+
* **Project Website:** [https://sites.google.com/view/ec-diffuser](https://sites.google.com/view/ec-diffuser)
|
| 20 |
+
* **Code Repository:** [https://github.com/carl-qi/EC-Diffuser](https://github.com/carl-qi/EC-Diffuser)
|
| 21 |
+
|
| 22 |
+
## Sample Usage
|
| 23 |
+
|
| 24 |
+
The datasets, pretrained agents, and DLP representations provided here are intended for use with the official [EC-Diffuser code repository](https://github.com/carl-qi/EC-Diffuser). Below are instructions for setting up the environment, downloading the data, and using the provided scripts for evaluation and training.
|
| 25 |
+
|
| 26 |
+
### Installation
|
| 27 |
+
|
| 28 |
+
Follow these steps to set up the environment (tested on Python 3.8):
|
| 29 |
+
|
| 30 |
+
1. **Create and activate a Conda environment:**
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
conda create -n dlp python=3.8
|
| 34 |
+
conda activate dlp
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
2. **Install main dependencies:**
|
| 38 |
+
The full list of dependencies can be found in the `requirements.txt` file within the [code repository](https://github.com/carl-qi/EC-Diffuser).
|
| 39 |
+
|
| 40 |
+
3. **Install Diffuser-related packages:**
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
cd diffuser
|
| 44 |
+
pip install -e .
|
| 45 |
+
cd ../
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
4. **Setup for the FrankaKitchen environment:**
|
| 49 |
+
|
| 50 |
+
Install D4RL by cloning the repository:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
git clone https://github.com/Farama-Foundation/d4rl.git
|
| 54 |
+
cd d4rl
|
| 55 |
+
pip install -e .
|
| 56 |
+
cd ../
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
5. **Finalize environment setup:**
|
| 60 |
+
|
| 61 |
+
Run the provided setup script:
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
bash setup_env.sh
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
*(If the script requires sourcing, you can also run: `source setup_env.sh`)*
|
| 68 |
+
|
| 69 |
+
### Downloading Datasets
|
| 70 |
+
|
| 71 |
+
Download the required datasets, pretrained agents, and DLP representations from this Hugging Face dataset repository:
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
git lfs install
|
| 75 |
+
git clone https://huggingface.co/datasets/carlq/ecdiffuser-data
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
### Evaluating a Pretrained Agent
|
| 79 |
+
|
| 80 |
+
You can evaluate the pretrained agents with the following commands. Replace `CUDA_VISIBLE_DEVICES=0,1` with the GPU devices you wish to use (Note IsaacGym env has to be on GPU 0).
|
| 81 |
+
|
| 82 |
+
- **PushCube Agent:**
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/eval_agent.py --config config.plan_pandapush_pint --num_entity 3 --planning_only
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
- **PushT Agent:**
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/eval_agent.py --config config.plan_pandapush_pint --push_t --num_entity 3 --push_t_num_color 1 --planning_only
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
- **FrankaKitchen Agent:**
|
| 95 |
+
|
| 96 |
+
```bash
|
| 97 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/eval_agent.py --config config.plan_pandapush_pint --kitchen --planning_only
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Training an Agent
|
| 101 |
+
|
| 102 |
+
Train your own agents using the commands below. Replace `CUDA_VISIBLE_DEVICES=0,1` with the GPU devices you wish to use (Note IsaacGym env has to be on GPU 0).
|
| 103 |
+
|
| 104 |
+
- **Train a PushCube Agent (3 cubes):**
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/train.py --config config.pandapush_pint --num_entity 3
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
- **Train a PushT Agent (1 T-shaped object):**
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/train.py --config config.pandapush_pint --push_t --num_entity 1
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
- **Train a FrankaKitchen Agent:**
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
CUDA_VISIBLE_DEVICES=0,1 python diffuser/scripts/train_kitchen.py --config config.pandapush_pint --kitchen
|
| 120 |
+
```
|