writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
mimicmotionRoutes MimicMotion's CUDA-first local inference and Cog deployment workflows, including runtime preflight checks, sample-config generation, and MP4 output.
Independent GitHub snapshot · Automated classification · Original documentation governs
MimicMotion generates human-motion videos from a reference image and a motion video. Use this skill when the task mentions MimicMotion, Stable Video Diffusion, DWPose, a sample config, checkpoint switching, or MP4 generation.
references/environment.md if the environment is not already known to be CUDA-ready.references/configuration.md for the required weights layout and the canonical sample config.references/workflows.md to choose between local inference and Cog deployment.references/troubleshooting.md if imports, weights, CUDA, or video writing fail.references/repo-provenance.md when checking whether this skill matches the current checkout.Use a Python 3.11 CUDA environment. The verified stack was:
torch==2.5.1+cu124torchvision==0.20.1+cu124diffusers==0.27.0transformers==4.32.1huggingface-hub==0.20.2decord==0.6.0onnxruntime-gpu==1.29.0einops==0.8.0omegaconf==2.3.0opencv-python==4.10.0.84matplotlib==3.9.1av==12.2.0cog==0.22.0 when using the deployment pathffmpeg available on PATHIf diffusers import errors mention cached_download, pin huggingface-hub==0.20.2. If decord is only available as a failing PyPI wheel on your platform, use the conda-forge build documented in references/environment.md.
| Workflow | When to use | Read / run |
|---|---|---|
| Local inference | You have a MimicMotion checkout, the CUDA stack is ready, and you want to generate a video from the sample config or a custom config. | Read references/workflows.md, then run scripts/check_runtime.py and scripts/run_inference.py. |
| Cog deployment | You want to understand the packaged predictor surface, input validation, or weight-fetch behavior. | Read references/workflows.md and references/configuration.md. |
| Runtime preflight | You want to confirm imports, CUDA providers, ffmpeg, and the local package surface before generating a video. | Run scripts/check_runtime.py --repo-root <checkout>. |
scripts/check_runtime.py — run this first. It checks the imported package stack, CUDA availability, ONNXRuntime CUDA providers, ffmpeg, and optionally the local model files.scripts/run_inference.py — run this after preflight when you want the bundled local-inference wrapper that mirrors the repository CLI.assets/example_data/videos/pose1.mp4 and assets/example_data/images/demo1.jpg.models/MimicMotion_1-1.pth.v1 and v1-1 and validates numeric bounds before generation.scripts/check_runtime.py --skip-models only when you need to confirm the Python/CUDA stack before the weights are available.ffmpeg.references/api-reference.md for verified signatures and output behavior.references/environment.md for the installation shape and backend checks.references/configuration.md for weights, config, and asset layout.references/troubleshooting.md for predictable import, backend, and video-writing failures.references/repo-routing-metadata.json for managed skill routing metadata.references/repo-provenance.md for the checkout snapshot that this skill matches.