计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
gail-imitation【效率与协作】Prepare expert demonstrations and reason about GAIL imitation learning in pytorch-a2c-ppo-acktr-gail.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.