File size: 2,587 Bytes
d18db74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<img src="rise_fig.png" alt="fig1" />

[![Python](https://img.shields.io/badge/python-3.10-blue.svg)](https://docs.python.org/3/whatsnew/3.10.html)

Code for the paper Using Non-Expert Data to Robustify Imitation Learning via Offline Reinforcement Learning.

[Website](https://uwrobotlearning.github.io/RISE-offline/) | [Paper](https://arxiv.org/abs/2510.19495)

### Installation

Clone repo

```
git clone git@github.com:UWRobotLearning/RISE.git
```

Install Dependencies

```
cd ood-sim-pipeline

# Install base dependencies
conda env create -f environment.yaml
conda activate 

# pytorch3d (dependency for diffusion) must be installed separately 
# due to bugs with downgrading torch to cpu
conda install pytorch3d -c pytorch3d

# install sim-pipeline package
pip install -e .

cd ..

# install custom robosuite from source
git clone git@github.com:UWRobotLearning/robosuite.git
cd robosuite
pip install -e .

# install custom robomimic from source
git clone git@github.com:UWRobotLearning/robomimic.git
cd robomimic
pip install -e .

# install mimicgen_environments
git clone git@github.com:UWRobotLearning/mimicgen_environments.git
cd mimicgen_environments
pip install -e .
```

### Datasets / Data Collection

Datasets used in paper can be downloaded here (pending).

Simulation data in robosuite can be collected using Spacemouse in the same manner as in robosuite. With the proper spacemouse vendor ID and product ID set in `robosuite/utils/macros.py`, run:

```
python scripts/collect_human_demonstrations.py +env=<env_config>

# Then convert to the proper format
python sim_pipeline/data_manager/convert_robosuite.py --dataset /path/to/collected/data

python scripts/dataset_states_to_obs.py --dataset /path/to/data --output_name <name> --camera_names agentview,robot0_eye_in_hand
```

Envs can be found in `configs/envs`.


### Training and evaluation

Configs for each experiment can be found in `configs/training/_imitation_learning/_offline_rl/_experiments`. For custom datasets, replace `low_dim_keys` with the names of observation proprioception keys, and `rgb_keys` with the names of observation image keys in the config. To train, run

```
python scripts/train_robomimic.py -cn iql_diffusion +training=<square/piece_assembly/threading/real_franka/...> data.dataset_path=<path_to_dataset>
```

To evaluate policies in simulation, run:

```
python scripts/eval.py -cn eval_robomimic_iql_diffusion exp.model_path=<path_to_checkpoint> +env=<env_config_to_eval_in>
```

valid envs can be found in `configs/env`. Policies used in the paper can be downloaded here (pending).