AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The cdf-augmentation skill provides a structured workflow for managing remote-API pipelines within the Cosmos Data Factory ecosystem. It enables users to author and validate YAML configurations for tasks including Cosmos Transfer, Cosmos Predict, image editing, and image-to-video inference. The skill handles the entire lifecycle of an augmentation task, from verifying container environments and endpoint connectivity to executing inference loops and applying quality gates via external evaluators.
What it does
- Author and validate PipelineConfig YAML files for various augmentation tasks.
- Manage remote inference pipelines for video transfer, prediction, and image editing.
- Verify container runtime environments and Git commit integrity before execution.
- Configure and execute captioning strategies using VLM and LLM endpoints.
- Implement quality gates and evaluation loops with external Cosmos evaluators.
- Handle precomputed WSM controls for advanced video generation workflows.
When to use it
- When you need to perform scene attribute changes on video using Cosmos Transfer.
- When generating or extending video content via Cosmos Predict.
- When editing specific attributes of an image or animating a frame into video.
- When you need to validate a pipeline configuration against schema requirements.
- When integrating external Cosmos evaluation into a media generation workflow.
Advantages
- Provides a standardized, repeatable workflow for complex media augmentation tasks.
- Ensures configuration consistency through mandatory validation steps.
- Supports flexible, remote-API based model execution without local weight dependencies.
- Includes built-in quality control via configurable evaluation gates.
- Enforces strict environment verification to ensure reproducible results.
Usage examples
- “I need to change the weather in this video to rainy. How do I start?”
- The agent will guide you through selecting the appropriate Cosmos Transfer config, verifying your input video, and setting up the required VLM/LLM endpoints for captioning.
- “Validate my config_video_transfer_CT3_omni.yaml file.”
- The agent will launch the container, run the validation command against the specified YAML, and report any schema or configuration errors.
- “Run an image-to-video generation using my image at s3://my-bucket/frame.png.”
- The agent will verify the environment, check the provided S3 URI, and execute the inference pipeline using the configured Cosmos3 image-to-video model.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/nvidia/cdf-augmentation/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip cdf-augmentation.zip -d .agents/skills
Documentation by NVIDIA
CDF Augmentation Pipeline Skill
Remote-API pipeline for captioning, generating, and evaluating augmented camera data. Models are configured as HTTP endpoints; no local model weights are included.
Purpose
Use it to select a supported generation mode, author and validate
PipelineConfig YAML, configure captioning/evaluators, and run the
cdf-augmentation:1.2.0 container. It covers Cosmos Transfer/Predict,
Cosmos3 WSM controls, image editing, image-to-video, BYOM endpoints, and
quality gates.
Do not use this skill for training or fine-tuning models, deploying clusters or NIM endpoints, or unrelated application/database development.
Prerequisites
| 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 when a configured local stage requires CUDA or decodes H.264 in the augmentation container. See Limitations. |
| Endpoint URLs | One reachable URL per role used by the selected config. The examples name local Qwen services (Qwen/Qwen3.6-27B-FP8 on vlm, Qwen/Qwen2.5-14B-Instruct on llm), but those are not guaranteed to be running. Resolve every required role independently: keep each reachable configured endpoint and ask only for the missing role URLs. |
| API keys (conditional) | Only for endpoints requiring authentication. Pass the environment variable named by each endpoint's api_key_env; never hardcode values in YAML. Local unauthenticated endpoints need none. |
| Input media | A video/image reachable by multistorageclient (s3://, msc://, gs://, az://, or HTTPS). Local paths are allowed only when no external Cosmos evaluator is enabled; external evaluation requires checker-readable remote URIs. |
| Approved release commit (execution only) | A 40-character commit hash confirmed by the user as release-owner-approved or retrieved from the verified release manifest. Never invent it or rely on an unverified environment value. |
Inputs
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_CT3_omni.yaml. If absent, pick a starting config from Supported Models and confirm with the user. |
input_media | Conditional | Source video/image → data[].inputs.rgb. Required for every mode except Cosmos Predict inference_type: text2world, where inputs may be null or rgb omitted. Overridable at run time via data.0.inputs.rgb=.... |
control_media | For precomputed control | Control video → data[].inputs.controls.<type>. For Cosmos3 WSM transfer, set controls.wsm; the client uploads it rather than exposing its local path to the server. |
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. Before the first candidate, null resolves once to the generator/executor seed when available, otherwise the current Unix time. Retry n uses that resolved base seed plus n. pipeline.retry defaults to 1, so evaluation permits at most 2 candidates by default. |
BYOM model: endpoints, adapters, roles
Each endpoints: list entry declares role, url, wire model, and optional
id, adapter, api_key_env, and timeout. Roles are vlm, llm,
image_edit, video_transfer, video_predict, image2video, and evaluator.
augmentation.model.name resolves by endpoint id, then role, then the known
model-name mapping. Adapter contracts and full fields are in
configuration-schema.md.
Supported Models
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 + precomputed WSM — follow world-state geometry/motion | A video_transfer endpoint id, e.g. cosmos3-transfer-wsm | video_transfer / openai.video.async | RGB video + WSM control + prompt → 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: use Cosmos Transfer for video scene changes, Cosmos Predict for
new/continued video, image edit for still edits, and image-to-video to animate a
frame. For Cosmos3 WSM, set data[].inputs.controls.wsm. Config selection
details are in config-decision-tree.md.
All models run via remote HTTP through one BaseExecutor; there is no local torchrun and no executor_type field.
Canonical Workflow
Follow this ordered decision tree; open the linked references only for the selected mode's details.
Config Correction Budget
config_attempts counts YAML versions, not validation or preflight calls. Keep
it across the whole workflow and never reset it.
Set it to
1after initial authoring.On a correctable error, if it is already
3, STOP and report the error. Otherwise increment it once and make one correction pass containing all currently reported YAML fixes.Validate and preflight that edited version without another increment. Repeat rule 2 only if a later check finds another correctable YAML error.
STEP 0 — Mandatory Entry Gate
Execute this gate before every other step:
Scope gate: if the request asks for training, fine-tuning, cluster/NIM deployment, or unrelated development, decline it and STOP.
Input gate: resolve values using Inputs. If required values remain unresolved, request only those values and STOP until they are supplied.
Proceed only when both gates pass and the input type and augmentation goal are known.
Select the model from Supported Models using that input type and goal.
Author the YAML in this order:
data,endpoints,captioning,augmentation,evaluators,pipeline, thendata_processing. Omit optional sections rather than creating placeholders. Setconfig_attempts = 1(config attempt 1 of 3).Branch on the requested outcome:
Configuration only or “do not execute”: do not build, launch, run preflight, or infer. A trusted runtime is an already-running container whose recorded immutable image ID/digest, checkout commit, and config mounts satisfy step 4. If validation was explicitly requested and such a runtime exists, run only the validation command and apply step 5's failure rules. Return the config (mark it unvalidated if validation was not run) and STOP.
Inference/run requested: proceed to step 4.
Prepare the runtime in these verifiable sub-steps: a. Obtain
EXPECTED_RELEASE_REFfrom the user as a release-owner-approved full commit or retrieve it from the verified release manifest. b. Verify the Git working tree is clean. c. VerifyHEADmatchesEXPECTED_RELEASE_REF. If a release tag selected the revision, verify the tag first, then compare its resolved full commit. d. Build the image and capture its immutablesha256:image ID, or obtain a verified registry digest. e. Create thecdfDocker bridge if needed and attach local services. f. Launch the container using the recorded image ID, thecdfnetwork, required volume mounts,--entrypoint /bin/bash, and only the endpoint key variables named byapi_key_envplus the scoped storage credential variables required for the configured remote media. If any sub-step fails, STOP and report the exact failure and relevant remediation: clean a dirty tree, supply the approved revision, resolve a revision mismatch, check the Docker daemon/build, fix network setup, or fix the container launch. Do not continue with a partial runtime.Inside the container, run the validation-only command in Usage Step 2 and classify its result while preserving
config_attempts(current config attempt N of 3):Success: if no external Cosmos evaluator is enabled, proceed directly to step 7. If one is enabled, proceed to step 6.
Editable YAML/schema error: when required endpoint URL/model details are known, apply the Config Correction Budget rule, then rerun validation on that YAML version.
Infrastructure/unknown input: for missing endpoint details, credentials, DNS, connectivity, or unhealthy services, do not edit speculatively. STOP and report the error or ask for the missing endpoint details.
With external Cosmos evaluation enabled, preserve
config_attempts(current config attempt N of 3) and run its hard preflight gate before captioning/generation by querying/health,/checkers, and/dependency-graph:Pass: require
/health.status == "healthy"; require every configuredchecks[].nameto exactly equal one string in the top-levelcheckersarray returned by/checkersand one key in the top-levelcheckersobject returned by/dependency-graph. Do not use substring, alias, or nested-field matching. Then proceed to step 7.Config error: only a 4xx response from
/checkersor/dependency-graphwhose body explicitly identifies a configured checker name or invalid config field qualifies. Apply the Config Correction Budget rule, then return to step 5; revalidation does not increment the counter.Infrastructure failure: any timeout, network/DNS error, 5xx response,
/healthfailure, unhealthy service, or missing deployed checker stops the workflow before generation. Create no candidate and report the root cause.
Enter inference only after step 5 succeeds and, when external evaluation is enabled, step 6 passes. Run a candidate loop bounded to
pipeline.retry + 1candidates (retrydefaults to1, so the default maximum is 2). Resolve the base seed once before the first candidate as defined in Inputs; retrynusesbase_seed + n:Generate a candidate and run its configured evaluators.
On pass, accept it and exit the loop.
On quality failure with attempts remaining, set the next seed to
base_seed + next_retry_number. Ifregenerate_caption_on_retry: true, regenerate the caption next; then generate the replacement. If false, generate the replacement immediately.On exhausted quality retries, fail evaluation and exit the loop.
On a service/contract failure, stop on the current candidate without generating another. For external Cosmos evaluation, this means a submission, polling, or discovery failure; a failed execution; a missing or skipped result; or an invalid gating contract without a literal top-level boolean
passed. Withpipeline.evaluation.strict: true(the default), applyretain_failures: its defaulttrueretains video, caption, metadata, and evaluation outputs for inspection; explicitfalsedeletes them. Withstrict: false, retain the files and report the evaluator failure without failing the sample.If provider metadata contains
error_code: ambiguous_post, preserve the retained candidate, do not resubmit automatically, STOP, and defer to operator recovery. Follow the ambiguous-POST recovery flow.
Usage
Step 1: Verify, Build, and Launch the Docker Container
Set EXPECTED_RELEASE_REF to a release-owner-reviewed full 40-character commit,
never a tag or branch. If a signed release tag selects the revision, verify the
tag first and record its resolved full commit as EXPECTED_RELEASE_REF. Build
only from a clean matching checkout, then record the resulting immutable image
ID. For a prebuilt release, use its verified digest.
set -e
EXPECTED_RELEASE_REF="${EXPECTED_RELEASE_REF:?set a reviewed full commit ID}"
test "${#EXPECTED_RELEASE_REF}" -eq 40
case "$EXPECTED_RELEASE_REF" in *[!0-9a-fA-F]*) exit 1 ;; esac
test -z "$(git status --porcelain)"
test "$(git rev-parse HEAD)" = "$(git rev-parse "${EXPECTED_RELEASE_REF}^{commit}")"
DOCKER_BUILDKIT=0 docker build \
-t cdf-augmentation:1.2.0 \
-f docker/Dockerfile .
CDF_IMAGE_ID="$(docker image inspect --format '{{.Id}}' cdf-augmentation:1.2.0)"
case "$CDF_IMAGE_ID" in sha256:*) ;; *) exit 1 ;; esac
test "$(docker image inspect --format '{{.Id}}' cdf-augmentation:1.2.0)" = "$CDF_IMAGE_ID"
docker network inspect cdf >/dev/null 2>&1 || \
docker network create cdf
# Attach each local model container once, for example:
# docker network connect cdf vlm
# Example only: replace these with exactly the api_key_env names declared by
# the selected config; use an empty array when every endpoint is unauthenticated.
CDF_ENDPOINT_KEY_ARGS=()
# Authenticated example:
# CDF_ENDPOINT_KEY_ARGS=(-e VLM_API_KEY -e LLM_API_KEY -e VEO_API_KEY)
# Forward only credential names required by the configured remote media. Give
# checker containers their own scoped credentials in their deployment.
CDF_STORAGE_CREDENTIAL_ARGS=()
# S3-compatible example (include only the names your storage config requires):
# CDF_STORAGE_CREDENTIAL_ARGS=(-e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY \
# -e AWS_DEFAULT_REGION -e AWS_ENDPOINT_URL)
docker run -it --rm \
--network cdf \
"${CDF_ENDPOINT_KEY_ARGS[@]}" \
"${CDF_STORAGE_CREDENTIAL_ARGS[@]}" \
-v "$(pwd)/modules:/workspace/modules" \
-v "$(pwd)/configs:/workspace/configs" \
-v "$(pwd)/data:/workspace/data" \
--entrypoint /bin/bash \
"$CDF_IMAGE_ID"Persist the captured sha256: ID and use it directly for every later launch;
never re-resolve the mutable tag as the launch target. For registry releases,
verify the signed manifest and use name:tag@sha256:<manifest-digest>.
Networking: augmentation is an outbound-only client and does not publish ports. Use the user-defined
cdfbridge for the augmentation container and every local model, Arbitrator, and checker container.cosmos-evaluatormay be a container/DNS hostname on that bridge; it is not a second bridge name. Change endpoint URLs from hostlocalhostaddresses to container DNS names, for examplehttp://vlm:8000/v1. The default bridge is sufficient when every endpoint is remote.API keys: prefer a platform secrets manager that injects the required environment variables. Otherwise, export only the required keys and forward their names with
-e VAR_NAME; never mount or load a broad credential file.No GPU needed for remote inference — add
--gpusfordata_processing.alignmentand any H.264 decode; pick a GPU not shared with a busy model server. Container runs as uid 10000; ensuredata/is writable (or--user "$(id -u):$(id -g)").
Warning: Never enable Docker host-network mode on shared, multi-tenant, or production hosts. It is permitted only when all three conditions hold: (1) a required host-local service cannot be moved onto the
cdfbridge, (2) the host is single-tenant and isolated with no other workloads, and (3) the user sends an explicit message in the current conversation choosing host networking after receiving a warning that it removes network namespace isolation. Silence, prior documentation, or an earlier unrelated approval is not acceptance. Do not select it automatically. Review pipeline-operations.md.
Step 2: Validate, Then Run (Inside the Container)
# Schema and cross-section preflight only: no endpoint calls or inference.
uv run --no-sync modules/cli.py --config configs/<config_file>.yaml --validate-only
# Run only after validation succeeds.
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/<config_file>.yaml \
data.0.inputs.rgb=/workspace/data/input.mp4 \
augmentation.parameters.seed=42Environment variables: generation/captioning keys resolve as the api_key_env
var → the role's default env var. External Cosmos evaluation reads only the
variable explicitly named by its endpoint and fails initialization when that
variable is unset. Leave api_key_env off for unauthenticated endpoints.
LOG_LEVEL sets logging.
Configuration Schema
Configs are validated against PipelineConfig (modules/aug_utils/schema/) and have seven top-level sections. Author them in the canonical order above; YAML key order does not change runtime semantics. Full per-section YAML is in configuration-schema.md; runtime flow and common editing tasks are in pipeline-operations.md.
Troubleshooting
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.
Limitations
Remote inference only. All models run behind remote HTTP endpoints; no local weights, no
torchrun, noexecutor_type, no Gradio executor.GPU for configured local stages. Remote inference needs no augmentation-container GPU. A CUDA GPU is required by
data_processing.alignment(cupy) and by any local stage decoding H.264 because the image ships only the hardwareh264_cuviddecoder (software AVC decode is off for licensing). VP9 decodes in software. Video output is VP9-only.External-evaluator media must be remote. When an external evaluator is enabled, schema validation rejects local
data[].inputs.rgb, control media, generateddata[].output.video, and configured companion media. Use checker-readables3://,msc://,gs://,az://, or HTTP(S) URIs; the pipeline does not upload local files solely for evaluation.Inference only. This pipeline augments and generates media — it does not train or fine-tune models.
Auth varies by endpoint. Hosted endpoints (e.g. Veo) need a key via
api_key_env; local endpoints (e.g. vLLM) need none.
Reference files
configuration-schema.md — full per-section YAML for every config section.
config-decision-tree.md — which config to start from, model/captioning selection, alignment override rules.
pipeline-operations.md — pipeline flow, worked example, common tasks, storage, security notes.
captioning-strategy-guide.md — all 6 captioning modes with complete YAML.
evaluator-setup-guide.md — built-in evaluator tuning plus external Cosmos discovery, gating, and failure semantics.
troubleshooting.md — validation/runtime errors and per-stage timings.
image-attribute-augmentation.md — Image Attribute Augmentation image-edit workflow and dataset packaging.
event-video-gen.md — smart-space image-to-video event generation.
Files
- ATTRIBUTION.mdAdded by AutoGineer906 B
- BENCHMARK.md10.1 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md20.8 KiB
- evals/evals.json20.5 KiB
- references/captioning-strategy-guide.md14.3 KiB
- references/config-decision-tree.md17.0 KiB
- references/configuration-schema.md24.5 KiB
- references/evaluator-setup-guide.md20.0 KiB
- references/event-video-gen.md16.2 KiB
- references/image-attribute-augmentation.md16.2 KiB
- references/pipeline-operations.md8.0 KiB
- references/troubleshooting.md5.4 KiB
- skill-card.md4.3 KiB
- skill.oms.sig6.4 KiB
references/config-decision-tree.md
Config Decision Tree
Configs live under
configs/cookbook/<use-case>/. See the cookbook index for the folder layout.
Step 1: Determine the Pipeline from Input Type
Ask the user what their input is. The input type determines which model to use:
What is your input?
│
├── Video file (.mp4, .avi, etc.)
│ └── Do you want to change scene attributes (weather, lighting, colors, clothing)?
│ ├── Yes, with a precomputed WSM control → Cosmos 3 Super WSM Transfer
│ ├── Yes, without WSM → Cosmos 3 Super Transfer
│ └── No, I want to predict/continue/extend the video
│ └── Cosmos Predict 2.5 (video + text → new video)
│
├── Image file (.png, .jpg, etc.)
│ ├── Edit the image (change attributes)? → image edit (image → edited image)
│ ├── Animate it into a video? → image-to-video (Cosmos3 or Veo 3.1)
│ └── Generate a video from it + a text prompt → Cosmos Predict 2.5 (image + text → video)
│
├── Text only (no media input)
│ └── Cosmos Predict 2.5 (text → video, inference_type: text2world)
│
└── Not sure / multiple inputs
└── Ask the user to clarify their input type and goalStep 2: Choose a Config
Cosmos 3 Super Transfer (video → video)
├── CT3 vLLM-OMNI transfer + external Cosmos Evaluator gate → config_video_transfer_CT3_omni.yaml
└── CT3 RGB + uploaded WSM, focused SQA/reference → config_video_transfer_CT3_wsm_omni.yamlThe CT3 config uses shared-network Qwen VLM/LLM captioning and the
openai.video.sync CT3 generation contract, then submits the generated S3 URI
to an evaluator-role Arbitrator endpoint for gated
metropolis.hallucination and metropolis.attribute_verification. Hallucination
needs both sides of the comparison: inputs.original_video_urls[stream_key]
is derived from data[0].inputs.rgb, so one input override updates both
consumers. Replace its S3 paths, unique relative output_storage_prefix, and
endpoint URLs for the deployment before running. Do not add the built-in
Hallucination or Attribute Verification evaluators to that example: they would
duplicate work and collide with the configured compatibility aliases.
The focused WSM config uses a fixed prompt and no evaluator, so it needs only
the Cosmos3 generation endpoint and storage access. It selects a
video_transfer endpoint by its free-form id, uses openai.video.async, and
sets the endpoint URL to the create route ending in /v1/videos. Supply the
source at data[].inputs.rgb and the precomputed control at
data[].inputs.controls.wsm. The client uploads both videos and sends
control_type=wsm; keep tuning such as extra_params.wsm.control_weight, but
do not set control or control_path there. Keep num_frames,
extra_params.max_frames, and extra_params.num_video_frames_per_chunk
aligned for the input/control pair.
Those evaluator choices belong to these two cookbook examples. Selecting a Cosmos Transfer generation model does not itself require external Cosmos evaluation; other configs may use built-in evaluators or no evaluator.
Cosmos Predict 2.5 (text/image/video → video)
No dedicated shipped config yet — create one and set augmentation.model.name: cosmos-predict, add a video_predict-role endpoint, and set augmentation.parameters.inference_type to text2world / image2world / video2world.
image edit (image → image)
├── Image Attribute Augmentation, chat.completions contract → config_image_edit_attribute_chat_api.yaml
├── Image Attribute Augmentation, images/edits contract → config_image_edit_attribute_images_api.yaml
├── Image Attribute Augmentation, NIM /v1/infer contract → config_image_edit_attribute_nim.yaml
├── Image Attribute Augmentation, hosted Gemma 4 llm role → config_image_edit_attribute_gemma_llm.yaml
└── Defect Image Generation (align output back to input)
├── chat.completions + alignment → config_image_edit_defect_chat_api.yaml
└── images/edits + resize + alignment → config_image_edit_defect_images_api.yamlimage-to-video (first-frame image → video)
├── Self-hosted Cosmos3 (sync /v1/videos/sync) → config_image2video_cosmos3.yaml
└── Hosted Veo 3.1 (async create→poll→download) → config_image2video_veo31.yamlBoth use a VLM→LLM caption chain (Qwen3-VL describes the seed → Qwen2.5 writes the motion prompt) plus attribute_verification. Cosmos3 uses the openai.video.sync adapter; Veo sets adapter: openai.video.async and needs a key via api_key_env: VEO_API_KEY.
For fixed-camera event video generation with Cosmos 3 Super, use config_event_video_gen_cosmos3_smart_spaces.yaml. It adds anomaly-specific prompting and sampled-frame VLM verification while using the openai.video.sync adapter.
Batch Config Generation
├── Generate N configs → workflow_example.yaml (Image Attribute Augmentation: attribute_distribution_1000_v1.yaml)
├── Generate N seed images → distribution_seed_image_gen_cosmos3_super_t2i_smart_spaces.yaml
└── Generate N event videos → distribution_event_video_gen_smart_spaces.yamlBy Captioning Strategy
What model are you using?
│
├── Cosmos Transfer / Predict / image-to-video (video output)
│ └── Default: VLM+LLM (VLM describes scene → LLM generates prompt with variables)
│ Config: config_video_transfer_CT3_omni.yaml, config_image2video_cosmos3.yaml
│
├── image edit (image editing)
│ └── Default: LLM-only (LLM generates editing instruction from variables)
│ Config: config_image_edit_attribute_chat_api.yaml
│
└── Fallbacks (any model):
├── Fixed text with variable substitution (no endpoints needed)
│ └── Use captioning.llm.text: "change {color} to {value}"
├── Sample from a prompt file (no endpoints needed)
│ └── Use captioning.llm.file_path: "/path/to/prompts.txt"
└── VLM-only description (no LLM needed)
└── Set captioning.vlm only (no captioning.llm)Endpoint Requirements by Configuration
All inference is remote — there is no executor_type. The generation model needs one endpoint whose role matches the model; its adapter defaults from the role (override with the endpoint's adapter field).
model.name | Role | Default adapter | Endpoint needed |
|---|---|---|---|
| cosmos-transfer2.5 | video_transfer | nim | one video_transfer endpoint |
| cosmos-predict | video_predict | nim | one video_predict endpoint |
| image-edit | image_edit | nim | one image_edit endpoint (adapter nim, openai.chat.completions, or openai.images.edits) |
| cosmos3-image2video | image2video | openai.video.sync | one image2video endpoint |
| (Veo, any id) | image2video | — (set openai.video.async) | one image2video endpoint with adapter: openai.video.async + api_key_env |
| (CT3 Omni, endpoint id) | video_transfer | — (set openai.video.sync) | one video_transfer endpoint selected by its id |
| (CT3 WSM, endpoint id) | video_transfer | — (set openai.video.async) | one video_transfer endpoint selected by its id; URL is the /v1/videos create route |
Additionally, captioning and verification need:
VLM captioning → a
vlm-role endpointLLM captioning → an
llm-role endpoint (except text/file captioners, which need none)Evaluation → the endpoints, media access, and authentication declared by the selected evaluator configuration
If two endpoints share a role, disambiguate by giving them ids and pointing the consumer at one (augmentation.model.name: <id>, or question_generation.endpoint_id / vlm_verification.endpoint_id).
Switching Models Without Changing Configs
Use OmegaConf CLI overrides. Endpoints are a list, so address entries by index:
# Point the image_edit endpoint at a different server / contract
uv run modules/cli.py --config configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_nim.yaml \
augmentation.model.name=image-edit \
endpoints.0.url=http://localhost:8001/v1 \
endpoints.0.adapter=openai.chat.completions
# Re-target the video_transfer endpoint. In config_video_transfer_CT3_omni.yaml the
# list order is vlm(0), llm(1), video_transfer(2), evaluator(3) — so the
# generation endpoint is index 2, NOT 0.
uv run modules/cli.py --config configs/cookbook/video-data-augmentation/config_video_transfer_CT3_omni.yaml \
endpoints.2.url=http://remote-server:8001/v1Index order is config-specific and fragile — always confirm which entry holds the role you mean (or just edit the YAML endpoints: list directly). Overriding the wrong index silently retargets a different service.
Disabling Evaluators Inline
# Keep Hallucination results but make that check observe-only
uv run modules/cli.py --config configs/cookbook/video-data-augmentation/config_video_transfer_CT3_omni.yaml \
evaluators.0.cosmos_evaluator.checks.0.gate=false
# Disable the CT3 external evaluator entirely (no preflight or submission)
uv run modules/cli.py --config configs/cookbook/video-data-augmentation/config_video_transfer_CT3_omni.yaml \
evaluators.0.cosmos_evaluator.enabled=falseMulti-Sample Batch Processing
Inline (up to ~5 samples)
uv run modules/cli.py --config configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_chat_api.yaml \
data.0.inputs.rgb=/data/img1.png \
data.0.output.video=/output/img1.jpg \
data.0.output.caption=/output/img1.txt \
data.0.output.metadata=/output/img1.json \
data.1.inputs.rgb=/data/img2.png \
data.1.output.video=/output/img2.jpg \
data.1.output.caption=/output/img2.txt \
data.1.output.metadata=/output/img2.jsonBatch Config Generation (10+ samples)
uv run modules/config_distribution_generation/generate_augmentation_configs.py \
--workflow configs/cookbook/video-data-augmentation/workflow_example.yamlThe workflow config (workflow_example.yaml) specifies:
data_dir— directory of input media filesn_augmentations— number of augmented configs to generate per inputconfig_output— where to write generated configsexample_augmentation_config— base config templatevariables— independent probability distributions for sampled attributesconditional_variables— dependent attribute distributions keyed by a parent variable value
Any evaluator-specific media, path, or synchronization requirements come from
example_augmentation_config; they do not apply to workflows using a different
template.
Use conditional_variables when attributes are not independent, for example:
road_conditiondepends onweathershoe_colordepends onshoe_type
Control Modality Configuration (Cosmos Transfer Only)
Control modalities define structural guidance from input videos. Higher weights = more structural preservation from the control input; a weight of 0 (or omitting the key) means the modality is not used.
| Modality | Purpose / recommended use | Weight guidance |
|---|---|---|
edge | Edge detection map — preserves structural outlines; the base structure signal in multi-control setups | 0.4–1.0 (use as the foundation) |
depth | Depth estimation map — preserves spatial layout | 0.3–0.4 (moderate) |
seg | Segmentation map — preserves object/semantic boundaries; pair with masks and seg_control_prompt | 0.2–0.4 (moderate); never use alone |
vis | Visualization/appearance — preserves visual style, supplements edge/seg | 0.05–0.6 (low); avoid very high values |
wsm | Precomputed world-scenario video — guides Cosmos3 geometry and motion | Put tuning under extra_params.wsm; a single positive weight normalizes to 1.0, so tune absolute strength with control_guidance |
Weight Normalization Behavior
Control weights are not individually capped. The pipeline forwards each weight to the backend unchanged (as {control_weight: <value>}); the Cosmos Transfer backend is what normalizes, based on the sum of all active weights:
Sum ≤ 1.0: Weights are applied as-is with no normalization. E.g.,
{seg: 0.2, edge: 0.2}stays unchanged.Sum > 1.0: Weights are normalized proportionally so the total equals 1.0. E.g.,
{seg: 4.0, edge: 1.0}(sum 5.0) becomes{seg: 0.8, edge: 0.2}.
Those augmentation.modalities rules describe the CT2.5 NIM controls. The
Cosmos3 WSM upload path does not use augmentation.modalities: put its path in
data[].inputs.controls.wsm and its options in extra_params.wsm. With WSM as
the only active control, any positive control_weight normalizes to 1.0;
extra_params.control_guidance controls absolute strength.
Best practices (see Cosmos Cookbook — Control Modalities):
Use multi-control combinations (e.g., edge + seg) for best results.
Start with lower
visweights and increase as needed.Do not use
segalone — always pair with another modality.If the output doesn't incorporate prompt-described changes, increase
augmentation.parameters.guidance(start at 3, boost to 5+ if needed).
Control Inputs in Data Section
Control input files must match modalities configured in augmentation.modalities:
data:
- inputs:
rgb: "/path/to/source.mp4"
controls:
edge: "/path/to/edge_map.mp4" # Only needed if modalities.edge is set
depth: "/path/to/depth_map.mp4"
output:
video: "/path/to/output.mp4"
caption: "/path/to/prompt.txt"
metadata: "/path/to/metadata.json"
augmentation:
modalities:
edge: 0.8
depth: 0.4
positive_prompt: "cinematic, photorealistic..."
negative_prompt: "cartoon, low quality..."If controls are set to null (e.g., edge: null), the Cosmos model extracts control signals automatically from the RGB input.
For the Cosmos3 WSM upload contract, use the dedicated config instead:
data:
- inputs:
rgb: "/path/to/source.mp4"
controls:
wsm: "/path/to/precomputed_wsm.mp4"
endpoints:
- id: cosmos3-transfer-wsm
role: video_transfer
url: "http://cosmos3-transfer:8001/v1/videos"
model: "nvidia/Cosmos3-Super"
adapter: openai.video.async
augmentation:
model:
name: cosmos3-transfer-wsm # exact endpoints[].id selector
parameters:
extra_params:
wsm:
control_weight: 1.0
control_guidance: 1.2Do not put the WSM path under extra_params: the adapter uploads it from
controls.wsm and the server injects a temporary path for that request.
Post-Processing: Data-Processing Alignment (image edit only)
data_processing is a top-level section (peer of augmentation and evaluators) for post-processors that mutate the augmentation output in place. Each sub-key is a separate processor; presence enables it.
alignment runs an MI-registration to warp+crop a generated image back into the reference frame of the input — useful when the model outputs at a different resolution (e.g. Qwen Image Edit upscales 158×114 → 1216×864). The aligned image overwrites data.output.video; recovered transform parameters land in data.output.metadata under alignment.
data_processing:
alignment:
rot_range_deg: [-1.0, 1.0, 0.1] # rotation search [start, stop, step] in degrees
shift_step: 1 # tx/ty grid step (px)
bins: 64 # MI histogram bins
interp: bilinear # nearest | bilinear warp kernel
no_resize: true # skip pre-resize of align→ref
min_mi: null # null = no MI floor; else abort thresholdAuto-derived parameters — do NOT set these in YAML. Computed at runtime from actual image dimensions; the schema exposes them only as escape-hatch overrides for visibly-failing runs.
| Field | Auto rule |
|---|---|
sx_range | [lo, hi, 0.1] with lo = ratio*0.9, hi = ratio*1.1, ratio = gen_w / ref_w |
sy_range | [lo, hi, 0.1] with lo = ratio*0.9, hi = ratio*1.1, ratio = gen_h / ref_h |
shift_range | max(ref_h, ref_w) // 4 |
pyr_levels | min(3, max_usable) keeping smallest level ≥ 32 px |
Agent guidance: leave the four fields above unset when authoring an alignment config; the auto-derived value is more likely correct than any hand-set one. Override only when alignment is visibly failing on a real run (e.g. mi_after ≈ mi_before, scale recovery saturating at a range bound, or the aligned image looks shifted/scaled) — then copy the auto-logged values and adjust the bounds. To match an image-edit server's internal normalization for clean alignment, pair with data_processing.preprocessing.resize (target_megapixels: 1.048576, grid: 32).
Requirements: runs on GPU only (cupy + CUDA), in-container.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an API key, Needs a command-line tool, Needs Python
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/cdf-augmentation · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download cdf-augmentation.zip