Liang-ZX's picture
Upload README.md with huggingface_hub
1c55374 verified
|
Raw History Blame Contribute Delete
3.3 kB
metadata
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. 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).

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:

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:

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. Apply this change only if your checkout shows that mismatch.

Citation

If you use these checkpoints, please cite:

@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}
}