executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
gail-imitationPrepare expert demonstrations and reason about GAIL imitation learning in pytorch-a2c-ppo-acktr-gail.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about Generative Adversarial Imitation Learning (GAIL) in this repo: preparing expert demonstrations, converting expert HDF5 trajectories to the .pt format consumed by the code, checking ExpertDataset behavior, or explaining how --gail changes the training loop.
references/gail-data-format.md, then use scripts/convert_gail_h5_to_pt.py for a safe local conversion helper.references/gail-workflow.md for how main.py --gail locates expert files, creates ExpertDataset, updates Discriminator, and replaces rewards.references/troubleshooting.md before changing code.../training-workflows/.../model-components/.ExpertDataset loading.--gail is valid only for vector observations in the current training loop; image/Atari observations trip the len(envs.observation_space.shape) == 1 assertion.setup.py does not declare h5py; ensure it is installed from the environment or requirements evidence before using HDF5 conversion.python sub-skills/gail-imitation/scripts/convert_gail_h5_to_pt.py \
--h5-file gail_experts/trajs_halfcheetah.h5 \
--pt-file gail_experts/trajs_halfcheetah.pt
The helper performs local validation only and writes a PyTorch dictionary with states, actions, rewards, and lengths tensors.