Upload README.md with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667---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:
```bashhf 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:
```bashpython 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}}```README.mdAdded+67