Generated banner for Cdf Augmentation
Generated logo for Cdf Augmentation

Cdf Augmentation

NVIDIAOfficialCreated by NVIDIA

  • Skill
  • Workflow
  • Data and AI
  • Apache-2.0
  • Medium risk

From the author

Use when authoring or validating Cosmos Data Factory (CDF) augmentation YAML configs, or running remote Cosmos Transfer (including Cosmos3 WSM controls), Cosmos Predict, image-edit, or image-to-video inference.
— the description by NVIDIA

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

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/nvidia/cdf-augmentation/download
  2. Unzip 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

RequirementDetail
Dockerdocker --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 URLsOne 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 mediaA 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.

InputRequiredDescription
config_pathYesPath 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_mediaConditionalSource 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_mediaFor precomputed controlControl 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_pathsYesdata[].output.{video,caption,metadata}; evaluation optional.
model_nameYesaugmentation.model.name — an endpoint id, a role, or a known model name. Free-form string, not an enum.
endpoint_urlsYesOne endpoints[] entry per role in use.
api_key_envIf authEnv-var name per endpoint; the value comes from the environment.
target_attributesNocaptioning.llm.variables (e.g. weather_condition, lighting_condition).
generation_paramsNoaugmentation.parameters — pass-through; only set knobs are sent.
seedNoUnder 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 → Goalmodel.nameRole / default adapterInput → Output
Video — change scene attributes (weather, lighting, style)cosmos-transfer2.5video_transfer / nimVideo (+ controls) → Video
Video + precomputed WSM — follow world-state geometry/motionA video_transfer endpoint id, e.g. cosmos3-transfer-wsmvideo_transfer / openai.video.asyncRGB video + WSM control + prompt → Video
Video + text — extend or predict continuationcosmos-predictvideo_predict / nimVideo+Text → Video
Text only — generate video from scratchcosmos-predict (inference_type: text2world)video_predict / nimText → Video
Image — edit specific attributesimage-editimage_edit / nim (or openai.chat.completions, openai.images.edits)Image → Image
Image — animate a first framecosmos3-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.

  1. Set it to 1 after initial authoring.

  2. 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.

  3. 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.

  1. Select the model from Supported Models using that input type and goal.

  2. Author the YAML in this order: data, endpoints, captioning, augmentation, evaluators, pipeline, then data_processing. Omit optional sections rather than creating placeholders. Set config_attempts = 1 (config attempt 1 of 3).

  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.

  4. Prepare the runtime in these verifiable sub-steps: a. Obtain EXPECTED_RELEASE_REF from 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. Verify HEAD matches EXPECTED_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 immutable sha256: image ID, or obtain a verified registry digest. e. Create the cdf Docker bridge if needed and attach local services. f. Launch the container using the recorded image ID, the cdf network, required volume mounts, --entrypoint /bin/bash, and only the endpoint key variables named by api_key_env plus 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.

  5. 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.

  6. 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 configured checks[].name to exactly equal one string in the top-level checkers array returned by /checkers and one key in the top-level checkers object 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 /checkers or /dependency-graph whose 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, /health failure, unhealthy service, or missing deployed checker stops the workflow before generation. Create no candidate and report the root cause.

  7. Enter inference only after step 5 succeeds and, when external evaluation is enabled, step 6 passes. Run a candidate loop bounded to pipeline.retry + 1 candidates (retry defaults to 1, so the default maximum is 2). Resolve the base seed once before the first candidate as defined in Inputs; retry n uses base_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. If regenerate_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. With pipeline.evaluation.strict: true (the default), apply retain_failures: its default true retains video, caption, metadata, and evaluation outputs for inspection; explicit false deletes them. With strict: 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 cdf bridge for the augmentation container and every local model, Arbitrator, and checker container. cosmos-evaluator may be a container/DNS hostname on that bridge; it is not a second bridge name. Change endpoint URLs from host localhost addresses to container DNS names, for example http://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 --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)").

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 cdf bridge, (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=42

Environment 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, no executor_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 hardware h264_cuvid decoder (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, generated data[].output.video, and configured companion media. Use checker-readable s3://, 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

Files

references/image-attribute-augmentation.md

Image Attribute Augmentation

Use this reference for Image Attribute Augmentation: clothing/accessory edits, Qwen image edit, distribution configs, attribute verification, single-ID grids, attribute-value tables, and augmented dataset creation.

This is an image-to-image workflow. Use the image-edit model path only; do not switch to Cosmos Predict or Cosmos Transfer to solve Image Attribute Augmentation image-edit requests.

Core Rules

  • Do not modify repo code unless the user explicitly asks. Runtime config copies, logs, and outputs can live under /tmp or the requested Image Attribute Augmentation dataset/output directory.

  • Never write model keys to config files, logs, or scripts. Pass user-provided keys through environment variables named by each endpoint's api_key_env — e.g. VLM_API_KEY, LLM_API_KEY, BUILD_NVIDIA_API_KEY.

  • All inference is remote (BYOM). The endpoint-only image bundles no local model weights. Image-edit endpoints are entries in the config's endpoints: list (role image_edit); choose the API contract with the endpoint's adapter field (nim, openai.chat.completions, or openai.images.edits). Captioning/verification use the vlm and llm role endpoints.

  • Safe Docker defaults. Run the container as your own user (--user "$(id -u):$(id -g)") and on the shared cdf bridge so outputs are not world-writable and host ports are not exposed. Run local model servers in containers on that bridge and use their container names in endpoint URLs. Never grant the augmentation container host-network access or make host directories world-writable on shared or multi-user machines.

  • Keep checked-in Image Attribute Augmentation distribution configs as templates. Make runtime copies with concrete data_dir, config_output, output_root, and template paths.

  • Validate generated configs and inspect expected output.jpg and output_metadata.json files. The CLI can exit successfully even when a specific sample did not produce an image.

  • For remote OpenAI-compatible model endpoints, the augmentation container does not need GPU flags. A GPU is only required for the data_processing.alignment post-processor (cupy/CUDA).

Deterministic Docker CLI Workflow

Build the endpoint-only augmentation image from the repo root when the user asks for a fresh local image (use legacy BuildKit per the repo's build convention):

DOCKER_BUILDKIT=0 docker build -t cdf-augmentation:1.2.0 -f docker/Dockerfile .

Launch the container from the repo root with the dataset and output mounted to stable /workspace/data paths:

HOST_DATA="/absolute/path/to/dataset_root"
HOST_OUT="/absolute/path/to/augmented_out"
mkdir -p "$HOST_OUT"
docker network inspect cdf >/dev/null 2>&1 || \
  docker network create cdf

docker run -it --rm \
  --user "$(id -u):$(id -g)" \
  --network cdf \
  -e VLM_API_KEY \
  -e LLM_API_KEY \
  -e BUILD_NVIDIA_API_KEY \
  -v "$(pwd)/modules:/workspace/modules:ro" \
  -v "$(pwd)/configs:/workspace/configs:ro" \
  -v "$HOST_DATA:/workspace/data/in:ro" \
  -v "$HOST_OUT:/workspace/data/out" \
  -w /workspace \
  --entrypoint /bin/bash \
  cdf-augmentation:1.2.0

Security & fallbacks. Running as your own UID (--user) lets the container write $HOST_OUT without world-writable permissions, and the :ro mounts give read-only access to modules//configs/, so no chmod is needed for them. The launch above uses the isolated cdf bridge. Attach local model containers to that bridge and address them by container name; host-network access is prohibited. If a non-default UID cannot use the image's prebuilt environment, drop --user and instead make $HOST_OUT writable by the container's non-root uid 10000 (e.g. chown), reserving world-writable permissions as a last resort on isolated single-user machines only. Prefer a 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 broad .env, SSH, cloud-credential, or token files.

Inside the container, all deterministic commands below assume /workspace as the working directory.

Input Preparation

Preprocess Image Attribute Augmentation image folders into multi-panel images with:

uv run python modules/data_processing/combine_panes.py \
  /workspace/data/in \
  /workspace/data/out/panes

Use combine_panes.py because it accepts one or more images per ID and writes both {person_key}.jpg and {person_key}.json metadata needed for later splitting. The expected input layout is one subdirectory per person ID:

/workspace/data/in/
├── person_0001/
│   ├── view_a.jpg
│   ├── view_b.jpg
│   └── view_c.jpg
├── person_0002/
│   ├── view_a.jpg
│   └── view_b.jpg
└── ...

The pane metadata sidecar records image_order, per-view widths, original_resolutions, total_width, and height; keep it beside the pane image so post-processing can split generated multi-pane outputs back to per-view crops.

When the user says to use only one image per ID, select a deterministic source image, usually the first sorted image in that ID folder, and document the chosen input path in the final response.

Image Attribute Augmentation Distribution Workflow

  1. Make a runtime copy of the requested distribution YAML, commonly configs/cookbook/image-attribute-augmentation/attribute_distribution_1000_v1.yaml.

  2. Set concrete runtime paths in the copy:

data_dir: /path/to/attribute_baseline/combined_imgs_<run_id>
config_output: /path/to/attribute_baseline/generated_configs_<run_id>
output_root: /path/to/attribute_baseline/output_<run_id>
example_augmentation_config: /path/to/image-edit template.yaml
  1. Generate configs:

.venv/bin/python modules/config_distribution_generation/generate_augmentation_configs.py \
  --workflow /tmp/attribute_distribution_<run_id>.yaml

If the template named in the distribution config is missing, use the closest existing Image Attribute Augmentation image-edit config (e.g. configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_chat_api.yaml) as the template source, then apply the compatibility fixes below.

Generated-Config Compatibility

Apply these fixes before running generated configs against the current CLI:

  • Set data[*].output.video to the same path as data[*].output.media.

  • If a legacy top-level attribute_verification block exists, add evaluators: [{attribute_verification: ...}].

  • In the evaluator copy, remove schema-forbidden legacy keys such as retries and accept_if_mvc_passed.

  • Copy captioning.verification_options into captioning.llm.verification_options so verification questions get the full answer set.

  • If the config still uses the old fixed-key endpoints: mapping, convert it to the BYOM list form (one entry per role with role/url/model/optional adapter). Remove any augmentation.model.executor_type (no longer a schema field).

  • Set pipeline.retry: 0 unless the user explicitly wants regeneration retries.

  • For a VLM-verification endpoint that rejects temperature: 0.0, set evaluators[].attribute_verification.vlm_verification.parameters.temperature: 1.0.

Validate configs with PipelineConfig before launching a batch when the change touches schema-sensitive fields.

Running Image Edit

Run image-edit augmentation inside cdf-augmentation:1.2.0 (the endpoint-only image bundles the repo deps and reaches the model over a remote endpoint — no local weights). Run each generated config with uv run modules/cli.py --config <cfg> and log stdout/stderr per config. Do not pass API keys on the command line; export only the required keys and forward their names with Docker -e VAR_NAME.

Docker and UV notes:

  • The image runs as a non-root user (uid 10000) that may not be able to write the host-owned repo mount. If uv reports permission errors under /workspace/.venv or /workspace/uv.lock, run Docker with the host UID/GID, set HOME=/tmp, set UV_PROJECT_ENVIRONMENT=/tmp/augmentation-venv, and use uv run --frozen.

  • For NVIDIA-hosted OpenAI-compatible endpoints, configure the base URL to end at /v1 (e.g. https://integrate.api.nvidia.com/v1), not the full /chat/completions URL — the OpenAI client appends /chat/completions internally.

  • The CLI exits non-zero if any sample fails generation or a strict evaluator check, so exit status 0 means every sample completed. Failed samples are logged (Sample failed: <path>) and the run ends with a N/M sample(s) failed summary. Under pipeline.evaluation.retain_failures (default true) an evaluator-failed sample's output file is still written, so a file on disk is not by itself proof of success — check the exit code.

For a single smoke-test pane, use an Image Attribute Augmentation image-edit config directly (endpoints come from the config's endpoints: list):

mkdir -p /workspace/data/out/augmented_outputs/person_0001/aug_0

uv run modules/cli.py --config configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_chat_api.yaml \
  data.0.inputs.rgb=/workspace/data/out/panes/person_0001.jpg \
  data.0.output.video=/workspace/data/out/augmented_outputs/person_0001/aug_0/output.jpg \
  data.0.output.caption=/workspace/data/out/augmented_outputs/person_0001/aug_0/output.txt \
  data.0.output.metadata=/workspace/data/out/augmented_outputs/person_0001/aug_0/output_metadata.json

To retarget an endpoint inline, override it by list index (e.g. endpoints.0.url=http://localhost:8001/v1); confirm which index holds the role you mean, or edit the config's endpoints: list directly.

For one augmentation per pane, preserve the standard output layout:

mkdir -p /workspace/data/out/augmented_outputs

for pane in /workspace/data/out/panes/*.jpg; do
  id="$(basename "${pane%.jpg}")"
  mkdir -p "/workspace/data/out/augmented_outputs/${id}/aug_0"

  uv run modules/cli.py --config configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_chat_api.yaml \
    data.0.inputs.rgb="$pane" \
    data.0.output.video="/workspace/data/out/augmented_outputs/${id}/aug_0/output.jpg" \
    data.0.output.caption="/workspace/data/out/augmented_outputs/${id}/aug_0/output.txt" \
    data.0.output.metadata="/workspace/data/out/augmented_outputs/${id}/aug_0/output_metadata.json"
done

To sweep a specific wardrobe value, add OmegaConf list overrides to a single call. Each call samples one combination from the lists:

mkdir -p /workspace/data/out/augmented_outputs/person_0001/aug_1

uv run modules/cli.py --config configs/cookbook/image-attribute-augmentation/config_image_edit_attribute_chat_api.yaml \
  data.0.inputs.rgb=/workspace/data/out/panes/person_0001.jpg \
  data.0.output.video=/workspace/data/out/augmented_outputs/person_0001/aug_1/output.jpg \
  data.0.output.caption=/workspace/data/out/augmented_outputs/person_0001/aug_1/output.txt \
  data.0.output.metadata=/workspace/data/out/augmented_outputs/person_0001/aug_1/output_metadata.json \
  'captioning.llm.variables.top_outer_color=[red]' \
  'captioning.llm.variables.top_outer_type=[cropped jacket]' \
  'captioning.llm.variables.bottom_color=[blue]' \
  'captioning.llm.variables.bottom_type=[jeans]' \
  'captioning.llm.variables.shoe_color=[white]' \
  'captioning.llm.variables.shoe_type=[sneakers]'

shoe_type and shoe_color are inserted into the edit prompt but excluded from the default MCQ verification gate by evaluators[0].attribute_verification.exclude_variables.

Output Inspection

Expected files usually have this shape:

input:    <combined_dir>/<person_key>.jpg
output:   <output_root>/<person_key>/aug_<n>/output.jpg
prompt:   <output_root>/<person_key>/aug_<n>/output.txt
metadata: <output_root>/<person_key>/aug_<n>/output_metadata.json

Metadata contains selections, attribute_verification.passed, per-question results, and optional natural captions. A generated image can exist even when verification fails.

Use generated configs as the status source of truth:

.venv/bin/python -c '
from pathlib import Path
import yaml

config_dir = Path("/path/to/attribute_baseline/generated_configs_<run_id>")
total = done = with_image = with_metadata = metadata_without_image = 0

for cfg in sorted(config_dir.glob("*.yaml")):
    data = yaml.safe_load(cfg.read_text())
    sample = data["data"][0]
    output = Path(sample["output"]["video"])
    metadata = Path(sample["output"]["metadata"])
    image_exists = output.exists()
    metadata_exists = metadata.exists()

    total += 1
    with_image += int(image_exists)
    with_metadata += int(metadata_exists)
    metadata_without_image += int(metadata_exists and not image_exists)
    done += int(image_exists and metadata_exists)

pending = total - done
print(f"total={total} done={done} pending={pending} with_image={with_image} with_metadata={with_metadata} metadata_without_image={metadata_without_image}")
'

When the user asks for examples or current status, report concrete paths:

input:    /path/to/attribute_baseline/combined_imgs_<run_id>/00000_RSTP.jpg
output:   /path/to/attribute_baseline/output_<run_id>/00000_RSTP/aug_0/output.jpg
metadata: /path/to/attribute_baseline/output_<run_id>/00000_RSTP/aug_0/output_metadata.json

Augmented Dataset

After image-edit outputs are complete, split outputs back into an augmented Image Attribute Augmentation dataset with:

uv run --no-sync python modules/data_processing/create_attribute_augmented_dataset.py \
  --base-dir /workspace/data/out/panes \
  --augmented-folders /workspace/data/out/augmented_outputs \
  --output-dir /workspace/data/out/augmented_dataset \
  --output-json augmented_data.json

--base-dir, every value passed to --augmented-folders, and --output-dir also accept MultiStorage paths. Configure the storage profile through the normal MSC configuration environment, then use the same command with remote URIs:

uv run --no-sync python modules/data_processing/create_attribute_augmented_dataset.py \
  --base-dir msc://attribute-data/out/panes \
  --augmented-folders msc://attribute-data/out/augmented_outputs \
  --output-dir msc://attribute-data/out/augmented_dataset \
  --output-json augmented_data.json

The post-processing script does not require an original dataset JSON. It uses the pane metadata from preprocessing to split generated multi-pane images back into per-view crops, writes split images under /workspace/data/out/augmented_dataset/augmented_imgs/<person_key>_aug<n>/, and writes the dataset JSON to /workspace/data/out/augmented_dataset/augmented_data.json. The JSON includes selected attributes, generated queries, image paths, and attribute verification metadata.

The script also accepts a pane metadata JSON directly and Cosmos-style numeric run directories directly. For example:

uv run --no-sync python modules/data_processing/create_attribute_augmented_dataset.py \
  --base-dir s3://bucket/run/preprocessing/person_0001/person_0001.json \
  --augmented-folders s3://bucket/run/cosmos/person_0001/0 \
  --output-dir /workspace/data/out/augmented_dataset

For discovery, 0 is treated like aug_0. If output.jpg is absent, the script uses the only .jpg or .jpeg in the run directory. When output_metadata.json is absent, images are still split, but selected attributes and verification metadata are empty.

Exploratory Grids And Tables

For user-facing examples, start with one ID and one source image unless the user asks for multi-view panels. Generate one attribute modification per call, reuse existing completed cells, and compose grids from the produced output.jpg files.

Grid and slide artifact practices:

  • Keep one axis or block per attribute and label values directly above or beside the edited image.

  • Group attributes visually when the user asks for a wide/horizontal slide artifact.

  • Avoid an original column unless the user asks for it.

  • Keep tiles close together and remove excess whitespace for slide-ready outputs.

  • Save both PNG and JPG when useful for slides.

  • For tables of attribute-value pairs, read the relevant Image Attribute Augmentation distribution/config YAML and output a Markdown or image table without running generation.

  • For color vocabulary examples, prefer swatch/table artifacts when no generation is needed; use generated image grids only when the user asks to see edits on the person.

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.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download cdf-augmentation.zip