npx skills add ...
npx skills add nvidia/skills --skill paidf-augmentation
Use when authoring or validating PAIDF augmentation YAML configs, or running remote Cosmos Transfer/Predict, image-edit, or image-to-video inference.
npx skills add nvidia/skills --skill paidf-augmentation
Unified pipeline for augmenting camera data through NVIDIA generative AI models with automated captioning, generation, and quality evaluation. BYOM (bring-your-own-model): every model is reached over a remote HTTP endpoint described by one entry in the config's endpoints: list; adding a model is usually a config change, not code.
Use this skill to drive the PAIDF augmentation pipeline end to end:
PipelineConfig Pydantic schema.paidf-augmentation:1.1.0 Docker container (remote-API only — no local model weights).Use this skill when running inference, authoring or editing configs, debugging validation or runtime errors, adding data samples, configuring captioning, tuning generation parameters, registering BYOM endpoints/adapters, or setting up evaluators. Trigger keywords: augmentation, cosmos transfer, cosmos predict, image edit, image-to-video, veo, image attribute augmentation, defect image generation, captioning, attribute verification, config validation.
Do not use this skill for training or fine-tuning models, deploying clusters or NIM endpoints, or unrelated application/database development.
| Requirement | Detail |
|---|---|
| Docker | docker --version. The image is remote-API only — it bundles no Cosmos/torch weights, so plain remote inference needs no GPU and no HF_TOKEN. |
| NVIDIA GPU (conditional) | Only for the data_processing.alignment post-processor (cupy) and H.264 decode (evaluators, data_processing.transcode). See Limitations. |
| Endpoint URLs | One reachable URL per role the config uses: the model role (video_transfer/video_predict/image_edit/image2video) plus vlm/llm for captioning and evaluation. Defaults are local Qwen vLLM servers (Qwen/Qwen3.6-27B-FP8 on vlm, Qwen/Qwen2.5-14B-Instruct on llm). If the user has none running, ask for URLs. |
| API keys (conditional) | Only for endpoints requiring auth. Passed by env var named in each endpoint's api_key_env — never hardcoded in YAML. Common: VLM_API_KEY, LLM_API_KEY, VEO_API_KEY, BUILD_NVIDIA_API_KEY. Local endpoints need none. |
| Input media | A video (transfer/predict) or image (edit/image2video) reachable by multistorageclient — local path, s3://, gs://, az://, or HTTP. |
Resolve each value in this precedence order: state file → explicit prompt arguments → agent context → user prompt. Ask the user only for what remains unresolved.
| Input | Required | Description |
|---|---|---|
config_path | Yes | Path to the pipeline YAML, e.g. configs/cookbook/video-data-augmentation/config_video_transfer_CT25_nim.yaml. If absent, pick a starting config from Supported Models and confirm with the user. |
input_media | Yes | Source video/image → data[].inputs.rgb. Overridable at run time via data.0.inputs.rgb=.... |
output_paths | Yes | data[].output.{video,caption,metadata}; evaluation optional. |
model_name | Yes | augmentation.model.name — an endpoint id, a role, or a known model name. Free-form string, not an enum. |
endpoint_urls | Yes | One endpoints[] entry per role in use. |
api_key_env | If auth | Env-var name per endpoint; the value comes from the environment. |
target_attributes | No | captioning.llm.variables (e.g. weather_condition, lighting_condition). |
generation_params | No | augmentation.parameters — pass-through; only set knobs are sent. |
seed | No | Under augmentation.parameters; null = random, re-rolled on retry. |
The pipeline never embeds an SDK per model. Instead:
endpoints: is a list. Each entry has role, url, model (the wire model string), an optional id (only to disambiguate 2+ endpoints sharing a role), an optional adapter (API contract; defaults from the role), api_key_env, and timeout.vlm, llm (captioning + evaluators), image_edit, video_transfer (Cosmos Transfer), video_predict (Cosmos Predict), image2video (Cosmos3 / Veo).openai.chat.completions, openai.images.edits, openai.video.sync, openai.video.async, nim, passthrough. The same model can be served over different contracts by changing only the endpoint's adapter field.augmentation.model.name resolves to an endpoint by id, else by role, else by the model-name→role map (image-edit→image_edit, cosmos-transfer2.5→video_transfer, cosmos-predict→video_predict, cosmos3-image2video→image2video).When the user hasn't specified a model, choose from their input type and goal:
| Input Type → Goal | model.name | Role / default adapter | Input → Output |
|---|---|---|---|
| Video — change scene attributes (weather, lighting, style) | cosmos-transfer2.5 | video_transfer / nim | Video (+ controls) → Video |
| Video + text — extend or predict continuation | cosmos-predict | video_predict / nim | Video+Text → Video |
| Text only — generate video from scratch | cosmos-predict (inference_type: text2world) | video_predict / nim | Text → Video |
| Image — edit specific attributes | image-edit | image_edit / nim (or openai.chat.completions, openai.images.edits) | Image → Image |
| Image — animate a first frame | cosmos3-image2video (or your Veo endpoint id) | image2video / openai.video.sync (Veo: openai.video.async) | Image + prompt → Video |
Key rule: video in + scene-attribute change → Cosmos Transfer. Generate new video from text/image/video conditioning → Cosmos Predict. Single image edit → image edit. Still image → moving clip → image-to-video.
All models run via remote HTTP through one BaseExecutor; there is no local torchrun and no executor_type field.
Set PAIDF_IMAGE_ID to the immutable sha256: image ID recorded from the
trusted local build (or supplied in trusted release metadata). The image ID is
build- and architecture-specific, so this repository cannot provide one
universal value. Verify that the mutable convenience tag still resolves to the
expected ID, then run the ID directly:
Do not derive PAIDF_IMAGE_ID from the tag and immediately trust it; compare
the tag against the digest recorded when the image was built or published. If
a registry release provides a signed manifest, verify that signature before
pulling and use its name:tag@sha256:<manifest-digest> reference instead.
-p/--publish ports. Keep the shared paidf bridge shown above for remote
endpoints. For another model container, attach it to the same bridge and use
its container name in the endpoint URL. Run host-local models in a container
on that bridge, or use a remote endpoint; do not grant the augmentation
container access to the host network.-e VAR_NAME; never mount or load a broad credential file.--gpus for data_processing.alignment and any H.264 decode; pick a GPU not shared with a busy model server. Container runs as uid 10000; ensure data/ is writable (or --user "$(id -u):$(id -g)").Security: Host networking is prohibited for this workflow, especially when API keys are present. Review pipeline-operations.md.
Environment variables: keys resolve as the api_key_env var → the role's default env var. If api_key_env names an unset var, resolution falls back to the role default; leave it off for unauthenticated endpoints. LOG_LEVEL sets logging.
Configs are validated against PipelineConfig (modules/aug_utils/schema/) and have seven top-level sections: data, endpoints (a list), pipeline, captioning, augmentation, data_processing, and evaluators. Full per-section YAML is in configuration-schema.md; runtime flow and common editing tasks are in pipeline-operations.md.
Configs live under
configs/cookbook/<use-case>/. See the cookbook index for the folder layout.
| Use case | Config(s) |
|---|---|
Video scene-attribute transfer (CT2.5, nim) | config_video_transfer_CT25_nim.yaml |
| Image → video | config_image2video_cosmos3.yaml (VLM→LLM) · config_image2video_cosmos3_vlm_template.yaml (VLM→template) · config_image2video_veo31.yaml (Veo 3.1, async) |
| Image Attribute Augmentation | config_image_edit_attribute_{chat_api,images_api,nim}.yaml · …_gemma_llm.yaml (hosted-Gemma LLM swap) |
| Defect Image Generation + MI alignment | config_image_edit_defect_{chat_api,images_api}.yaml |
| Batch config generation | workflow_example.yaml · attribute_distribution_1000_v1.yaml |
| Smart-space seed image / event video | config_seed_image_gen_cosmos3_super_t2i_smart_spaces.yaml · config_event_video_gen_cosmos3_smart_spaces.yaml |
Per-config captioning / evaluator / adapter details are in config-decision-tree.md.
Run all inference and schema validation inside the Docker container for a consistent environment. For config-validation errors, runtime/endpoint errors, and typical per-stage timings, see troubleshooting.md.
torchrun, no executor_type, no Gradio executor.data_processing.alignment (cupy) and by anything decoding H.264 — the evaluators and data_processing.transcode — because the image ships only the hardware h264_cuvid decoder (software AVC decode is off for licensing). VP9 decodes in software. Video output is VP9-only.api_key_env; local endpoints (e.g. vLLM) need none.uv run --no-sync modules/cli.py --config configs/<config_file>.yaml
# With OmegaConf CLI overrides (dot-list syntax)
uv run --no-sync modules/cli.py --config configs/cookbook/video-data-augmentation/config_video_transfer_CT25_nim.yaml \
data.0.inputs.rgb=/workspace/data/input.mp4 \
augmentation.parameters.seed=42