|
Download README.md from Liang-ZX/skilldiffuser-lorel-sawyer-eval: direct link, hf CLI and curl.
- Browser
- Download file 3.3 kB
-
https://huggingface.co/Liang-ZX/skilldiffuser-lorel-sawyer-eval/resolve/main/README.md
- Command line
-
hf download hf://Liang-ZX/skilldiffuser-lorel-sawyer-eval/README.md
-
curl -L -o README.md https://huggingface.co/Liang-ZX/skilldiffuser-lorel-sawyer-eval/resolve/main/README.md
3.3 kB
| 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} | |
| } | |
| ``` | |