File size: 3,301 Bytes
1c55374
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
tags:
  - skilldiffuser
  - robotics
  - diffusion
  - evaluation
  - lorel
---

# SkillDiffuser LOReL Sawyer evaluation checkpoints

This repository provides the **evaluation checkpoint pair** for SkillDiffuser on the LOReL Sawyer observation setting (`env=lorel_sawyer_obs`). These files are intended to be loaded together for evaluation with the [official SkillDiffuser implementation](https://github.com/Liang-ZX/SkillDiffuser). They are separate from the fine-tuning initialization checkpoints.

SkillDiffuser is described in [*SkillDiffuser: Interpretable Hierarchical Planning via Skill Abstractions in Diffusion-Based Task Execution* (CVPR 2024)](https://skilldiffuser.github.io/).

## Checkpoint files

| File | Argument in the original evaluation command |
| --- | --- |
| `model_250.ckpt` | `checkpoint_path=model_250.ckpt` |
| `state_400000.pt` | `diffuser.loadpath=state_400000.pt` |

The files are stored at the root of this model repository. This is a project-specific PyTorch checkpoint pair, not a `transformers` model that can be evaluated with `from_pretrained()` alone.

## Download and evaluate

From the directory of the SkillDiffuser implementation that contains `hrl/main_hot.py`, download the two files:

```bash
hf download Liang-ZX/skilldiffuser-lorel-sawyer-eval \
  --local-dir ./skilldiffuser_longhorizon_eval
```

Use the evaluation configuration documented by the original project. The command below preserves its hyperparameters and points its two checkpoint arguments at the downloaded files:

```bash
python hrl/main_hot.py \
  env=lorel_sawyer_obs method=traj_option \
  dt.n_layer=1 dt.n_head=4 \
  option_selector.option_transformer.n_layer=1 \
  option_selector.option_transformer.n_head=4 \
  option_selector.commitment_weight=0.1 \
  option_selector.option_transformer.hidden_size=128 \
  batch_size=256 seed=1 warmup_steps=5000 resume=True \
  checkpoint_path=./skilldiffuser_longhorizon_eval/model_250.ckpt \
  diffuser.loadpath=./skilldiffuser_longhorizon_eval/state_400000.pt
```

If your checkout resolves these parameters as checkpoint *names* rather than filesystem paths, place the downloaded files in the locations expected by that checkout and use the original arguments `checkpoint_path=model_250.ckpt` and `diffuser.loadpath=state_400000.pt`.

### Checkpoint loading compatibility

The original release notes mention a possible dimension mismatch when loading this checkpoint. If you encounter it, adjust `self.embed_ln` in `dec_encoder.py` to the checkpoint-compatible implementation and set its initialization input dimension to `hidden_size + self.act_dim`. The original note includes an [illustration of the code change](https://github.com/user-attachments/assets/35707bb4-30c2-4028-8282-47078e59492b). Apply this change only if your checkout shows that mismatch.

## Citation

If you use these checkpoints, please cite:

```bibtex
@inproceedings{liang2024skilldiffuser,
  title={SkillDiffuser: Interpretable Hierarchical Planning via Skill Abstractions in Diffusion-Based Task Execution},
  author={Liang, Zhixuan and Mu, Yao and Ma, Hengbo and Tomizuka, Masayoshi and Ding, Mingyu and Luo, Ping},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={16467--16476},
  year={2024}
}
```