Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nv-generate-ct-rflow

БесплатноЗапускает вложенные скриптыНе проверен

Used for generating synthetic CT volumes and masks with NV-Generate-CTMR rflow-ct. Not for production training data without review.

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

NV-Generate-CT (rflow-ct)

Purpose

  • Used for generating synthetic CT volumes and masks with NV-Generate-CTMR rflow-ct. Not for production training data without review.
  • Use the wrapper exactly as documented; do not replace the upstream entrypoint with a handwritten implementation.
  • Do not write custom inference code for normal runs. The wrapper owns config staging, output paths, label mapping evidence, and validation.
  • Manifest I/O: inputs are config_infer_override; outputs are synthetic_ct_volumes and result_json.

Instructions

  • Read skill_manifest.yaml before changing arguments, side effects, or validation gates.
  • Run scripts/run_rflow_ct.py through the documented command below; keep outputs under a caller-provided run directory.
  • If a host agent exposes run_script, use run_script("scripts/run_rflow_ct.py", args=[...]); otherwise run the Bash/Python command shown below.
  • For generation, use the upstream runtime requirements. For a preflight, the wrapper needs only NumPy, NiBabel, and Typer to start. Pass the caller’s config, output directory, and seed to the same entrypoint.
  • Do not add rm, mkdir, or any cleanup of --output-dir; the wrapper creates it. Use a fresh --output-dir instead of deleting one.
  • Check the emitted JSON and paired verifier guidance before treating the run as evidence.

Available Scripts

Script Purpose Arguments
scripts/_anatomy.py Internal helper used by the primary entrypoint. Imported only; do not call directly.
scripts/_summary_card.py Internal helper used by the primary entrypoint. Imported only; do not call directly.
scripts/list_anatomies.py Helper command for catalog or anatomy lookup. [--region REGION] [--filter TEXT] [--controllable]
scripts/run_rflow_ct.py Primary entrypoint declared by skill_manifest.yaml. CONFIG_INFER.json --output-dir OUT_DIR [--random-seed N] [--version rflow-ct] [--yes]
scripts/run_ct_mask.py Advanced diagnostic helper for standalone raw MAISI mask generation. REQUEST.json --output-dir OUT_DIR [--random-seed N] [--preflight-only] [--yes]
scripts/run_ct_from_mask.py Advanced helper for CT image generation from a MAISI label mask. REQUEST.json --output-dir OUT_DIR [--random-seed N] [--yes]
scripts/run_ct_image.py Advanced helper for CT image-only generation without paired labels. MODEL_CONFIG.json --output-dir OUT_DIR [--version rflow-ct] [--random-seed N] [--yes]

Prerequisites

  • Required environment variables: NV_GENERATE_ROOT.
  • Runtime requirements: GPU/CUDA when declared by the manifest; Python packages listed in runtime.side_effects.pip_packages.
  • Side effects: writes generated outputs under the caller's --output-dir, may cache model assets under ~/.cache/huggingface/, and may contact https://huggingface.co or https://github.com during setup.
  • Run commands from the repository root unless an existing section below says otherwise.

Limitations

  • This is a thin wrapper. Inference, sampling, and decoding are delegated entirely to NVIDIA-Medtech/NV-Generate-CTMR's scripts.inference. Do not modify code under $NV_GENERATE_ROOT.
  • rflow-ct requires CUDA and ≈ 16 GB VRAM minimum for the default 256³ output_size. Larger output_size (e.g. 512×512×768) needs an A100/H100.
  • Output volumes are synthetic. They are not safe to use as training data for production medtech models without an independent quality review.
  • Not for clinical deployment, clinical interpretation, autonomous diagnosis, regulatory submission.

Troubleshooting

Error Cause Fix
Missing dependency or import error Runtime package drift from skill_manifest.yaml. Install the packages declared in the manifest or use the documented setup command.
Empty or schema-invalid output Wrong input path, unsupported modality, or upstream failure. Re-run with a known fixture and inspect the wrapper JSON plus stderr.
Validation gate failure Output violated a declared engineering invariant. Keep the failed evidence pack and use the gate message to repair inputs or wrapper code.

Wraps the upstream NVIDIA-Medtech/NV-Generate-CTMR rectified-flow synthesis pipeline. The wrapper does not reimplement diffusion, sampling, or autoencoder decoding — it shells out to the upstream scripts.inference entry point exactly as the project's README documents and inspects the produced image/mask pairs.

Preconditions

  1. If NV_GENERATE_ROOT already names a local checkout, the wrapper uses it and records its current commit in the result. Otherwise, create the recommended pinned default checkout (one-time):

    if [ -z "${NV_GENERATE_ROOT:-}" ]; then
      export NV_GENERATE_COMMIT=61c4ec709b84cad468852243c48e250bec732074
      export NV_GENERATE_ROOT="$HOME/.cache/nvidia-skills/upstreams/NV-Gener
    
Полный SKILL.md на GitHub

Установить nv-generate-ct-rflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash

Вложенные файлы

BENCHMARK.mdevals/evals.jsonevals/files/abdomen_request.jsonreferences/ct-from-mask-format.mdreferences/ct-mask-label-space.mdreferences/fov-and-downloads.mdscripts/_anatomy.pyscripts/_summary_card.pyscripts/list_anatomies.pyscripts/run_ct_from_mask.pyscripts/run_ct_image.pyscripts/run_ct_mask.pyscripts/run_rflow_ct.pyscripts/wrapper_utils.pyskill-card.mdskill.oms.sigskill_manifest.yamlvalidators/output_schema.json

FAQ

Что делает скилл nv-generate-ct-rflow?

Used for generating synthetic CT volumes and masks with NV-Generate-CTMR rflow-ct. Not for production training data without review.

Как установить скилл nv-generate-ct-rflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nv-generate-ct-rflow запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить nv-generate-ct-rflow с