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
mmgenerationRoutes MMGeneration tasks across sampling, training, evaluation, configuration, and latent-editing workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
MMGeneration is OpenMMLab's generative-model toolkit for GANs, translation models, SinGAN, and diffusion workflows.
Use this repo skill when the task mentions mmgen, MMGeneration, one of the model families below, or the repo's train/eval/demo/application scripts.
references/installation-and-compatibility.md if the environment is not already verified.references/repo-provenance.md when you need to check whether this skill still matches the current checkout.scripts/check_install.py for a fast import and backend smoke check.MMGeneration depends on a compatible PyTorch wheel, mmcv-full in the 1.x line, and mmcls in the 0.x line.
A practical install order is:
mmcv-full wheel for that torch/CUDA combination.mmcls<1.0.0 and the runtime requirements used by this repo.python scripts/check_install.py.For detailed compatibility notes, backend guidance, and common failure modes, read references/installation-and-compatibility.md and references/troubleshooting.md.
| Sub-skill | Use it for | Typical signals |
|---|---|---|
sub-skills/inference-and-sampling/ | Load a generator and sample unconditional, conditional, translation, or DDPM outputs | init_model, sample_unconditional_model, sample_img2img_model, demo scripts, sample shapes, device selection |
sub-skills/training-and-distribution/ | Train or resume configs, choose launcher mode, or debug distributed training | tools/train.py, dist_train.sh, slurm_train.sh, DynamicIterBasedRunner, EMA, CPU training, DDP wrapper |
sub-skills/evaluation-and-metrics/ | Run evaluation, precompute inception stats, or reason about FID/IS/PPL/SWD/PR/MS-SSIM | tools/evaluation.py, inception_stat.py, translation_eval.py, metrics, online/offline evaluation |
sub-skills/configuration-and-extension/ | Edit configs, define datasets/pipelines, register new models/losses/hooks, or inspect config expansion | _base_, _delete_, custom_imports, cfg-options, registries, dataset layouts, print_config.py |
sub-skills/applications-and-deployment/ | Latent interpolation, projection, SeFa, StyleCLIP, or TorchServe packaging | apps/, mmgen2torchserver.py, projector.py, modified_sefa.py, styleclip.py |
MMGeneration's supported workflows cluster around these families:
See references/model-overview.md for the repo-facing model map and where each family lives.
The installed package exposes mmgen.apis helpers for model loading and sampling, mmgen.models builders and registries, mmgen.datasets builders and dataset classes, and mmgen.core evaluation, hook, optimizer, and runner utilities.
Read references/api-reference.md for verified signatures and references/data-formats.md for dataset layouts and pipeline keys.
The repo does not define a console entry point; use the repository scripts directly.
Read references/cli-reference.md for the main command families and flag meanings.
scripts/check_install.py — verify that the installed package imports, the public modules are visible, and the expected backend is usable.sub-skills/configuration-and-extension/scripts/print_config.py — print a fully resolved config with optional overrides.sub-skills/inference-and-sampling/scripts/sample_mmgen.py — run a safe sampling helper across the common inference modes.If a workflow fails, start with references/troubleshooting.md. The most common issues are:
mmcv.runner import failures from an incompatible MMCV version.mmcv.ops/CUDA extension problems from the wrong wheel or missing GPU runtime.styleclip.py requiring the optional clip package.When the repo changes, compare it with references/repo-provenance.md before reusing this skill.