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
inferenceRoutes HiFi-GAN wav-to-wav and mel-to-wav inference, checkpoint/config pairing, output naming, and smoke checks.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when you need to synthesize waveforms with a trained HiFi-GAN generator.
scripts/infer_hifigan.py --mode wav synthesis from a directory of input wavs.scripts/infer_hifigan.py --mode mel synthesis from a directory of mel .npy files.config.json.config.json.scripts/infer_hifigan.py wraps the bundled inference.py and inference_e2e.py; both underlying paths read config.json from the checkpoint directory and do not accept a separate config flag.generator entry. Training checkpoints named do_######## are not valid inference inputs.scripts/infer_hifigan.py --mode wav expects mono wav files, computes mels with the loaded config, and writes <stem>_generated.wav.scripts/infer_hifigan.py --mode mel expects mel .npy files and writes <stem>_generated_e2e.wav.torch.cuda.is_available() is true and fall back to CPU otherwise.os.listdir(...) directly, so keep the input directory clean and populated only with the intended files.config_v1.json, config_v2.json, and config_v3.json under ../../scripts/hifigan_runtime/configs/.torch 2.3.1+cu121 imported on an NVIDIA A100-SXM4-40GB host; torch.cuda.is_available() returned true; torch.cuda.get_device_name(0) worked; torch.utils.tensorboard imported; librosa.util.normalize was present in librosa 0.10.2.post1.