Logo Nurec Fixer

Nurec Fixer

Tổ chức
NVIDIA
nurec-fixer

Dùng để chạy NVIDIA DiffusionHarmonizer (bản kế nhiệm công khai của các quy trình Fixer cũ) nhằm nâng cao chất lượng, hài hòa, đánh giá hoặc tinh chỉnh khung hình góc nhìn mới từ các bản tái tạo NRE / NuRec / 3DGS / NeRF. KHÔNG dùng để huấn luyện bản thân quá trình tái tạo 3D (dùng `nre`) hoặc chuyển đổi cảm biến sang NCore (dùng `ncore`).

Tổng quan

Nhà phát hànhNVIDIA
Kho mãnurec-skills
Tên kỹ năngnurec-fixer
Sao
50
Bản fork
10
Tệp đi kèm
12
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 12 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được NVIDIA công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Nurec Fixer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/NVIDIA/nurec-skills/tree/main/skills/nurec-fixer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NVIDIA/nurec-skills.git /tmp/nurec-skills
mkdir -p .claude/skills
cp -r /tmp/nurec-skills/skills/nurec-fixer .claude/skills/nurec-fixer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Nurec Fixer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Nurec Fixer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Nurec Fixer với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

NVIDIA DiffusionHarmonizer (NuRec post-processing)

Purpose

Run NVIDIA DiffusionHarmonizer on rendered images from neural reconstructions. DiffusionHarmonizer is a single-step, temporally-aware image diffusion enhancer for NeRF / 3DGS / NuRec-style renderings. It improves realism, reduces reconstruction artifacts, and harmonizes inserted dynamic objects with the surrounding scene.

When to Use / When NOT to Use

Use this skill when the user has rendered frames from NRE, NuRec, 3DGS, NeRF, or a similar reconstruction pipeline and wants to enhance, harmonize, evaluate, or optionally fine-tune the DiffusionHarmonizer model.

Do NOT use this skill when:

  • The user wants to train or render the 3D reconstruction itself (use nre).
  • The user wants to convert raw sensor data to NCore V4 (use ncore).
  • The user wants a generic photo enhancer. DiffusionHarmonizer is tuned for neural-reconstruction artifacts and object-insertion failures.
  • The user only wants NRE inline rendering with --enable-difix. That remains an NRE runtime feature; use the nre skill for the complete serve-grpc / render-grpc command shape.

What changed from the older Fixer skill

This skill follows the public NVIDIA/harmonizer release, not the older NGC JIT .pt artifact recipe. Use these public release artifacts:

  • Code: https://github.com/NVIDIA/harmonizer
  • Model: nvidia/Harmonizer on Hugging Face (the paper checkpoint models/diffusion_harmonizer.pkl), plus the base nvidia/Cosmos-Predict2-0.6B-Text2Image model that inference also requires.
  • Checkpoint download: ./download_checkpoints.sh from the repo root. It fetches the Harmonizer checkpoints into models/ (diffusion_harmonizer.pkl, harmonizer_nontemporal.pt) and the base Cosmos DiT + tokenizer into src/checkpoints/nvidia/Cosmos-Predict2-0.6B-Text2Image/.
  • Runtime: the harmonizer-cosmos-env image built from Dockerfile.cosmos (base nvcr.io/nvidia/pytorch:25.10-py3).
  • Inference entry: src/inference_pix2pix_turbo_harmonizer.py, run from inside /work/src so it can import its sibling modules.
  • Evaluation entry: src/evaluate_test_dataset.py
  • Training entry: src/train_pix2pix_turbo_harmonizer.py

Do not use the obsolete standalone recipe that downloads nvidia/nre/nurec-fixer:cosmos_3dgut_fixer_harmonizer, mounts harmonizer_temporal.pt, or runs inference_jit_harmonizer.py inside nvcr.io/nvidia/pytorch:24.10-py3 unless the user explicitly asks for that older beta artifact. Do not run inference_pretrained_model.py; the current README documents inference_pix2pix_turbo_harmonizer.py as the inference entry point.

Background

DiffusionHarmonizer is described in DiffusionHarmonizer: Bridging Neural Reconstruction and Photorealistic Simulation with Online Diffusion Enhancer (arXiv 2602.24096, CVPR 2026). It distills a pretrained multi-step diffusion model into a single-step enhancer designed for online simulation and offline data cleanup.

Two operating modes:

  • Offline: clean pseudo-training views rendered from a reconstruction, then distill the improved views back into the 3D representation.
  • Online: enhance frames during simulation/inference by harmonizing color and lighting, reconstructing missing or inconsistent shadows for inserted actors, and reducing residual reconstruction artifacts.

The public model card describes DiffusionHarmonizer-cosmos-0.6B, a Cosmos Predict2 Diffusion Transformer post-trained at 576x1024 input and output resolution.

Inputs

  • code_dir — checkout of https://github.com/NVIDIA/harmonizer.
  • model_dir — checkpoints fetched by ./download_checkpoints.sh from the repo root. It places the paper checkpoint at models/diffusion_harmonizer.pkl and the required base Cosmos model under src/checkpoints/nvidia/Cosmos-Predict2-0.6B-Text2Image/.
  • input_dir — directory of rendered RGB frames (.png, .jpg, .jpeg) to enhance.
  • output_dir — inference_pix2pix_turbo_harmonizer.py does not take an output flag; it writes to a sibling folder named <input_dir>_<model_identifier> next to the input directory.
  • HF_TOKEN — Hugging Face token with access to nvidia/Harmonizer, nvidia/Cosmos-Predict2-0.6B-Text2Image, and (if used) nvidia/Harmonizer-Dataset. Accept the model/dataset license terms first.
  • NGC_API_KEY — often needed to authenticate docker pull from nvcr.io. Use only for container pulls, not model download.

Instructions

  1. Validate the host. Have the agent execute scripts/validate_setup.py via its standard script runner — e.g. run_script("scripts/validate_setup.py") or python scripts/validate_setup.py. It checks Docker, the NVIDIA Container Toolkit, GPU architecture, git, the Hugging Face CLI, token presence, and free disk space — and exits non-zero on any missing prerequisite.

  2. Clone the code and build (or pull) the runtime image. Full commands and the Blackwell patch caveat live in references/inference.md.

    bash
    git clone https://github.com/NVIDIA/harmonizer.git
    cd harmonizer
    docker build -t harmonizer-cosmos-env -f Dockerfile.cosmos .
  3. Download the checkpoints. From the repo root run the helper, which fetches both the Harmonizer checkpoints and the base Cosmos model into the paths the code expects.

    bash
    export HF_TOKEN=<your-hugging-face-token>
    hf auth login --token "$HF_TOKEN"
    ./download_checkpoints.sh

    Verify models/diffusion_harmonizer.pkl and src/checkpoints/nvidia/Cosmos-Predict2-0.6B-Text2Image/ exist.

  4. Confirm input_dir exists and filenames sort into frame order. The temporal inference script sorts frames with natural sort and uses previous outputs as references; prefer zero-padded names such as frame_000001.png.

  5. Run inference inside the container with the repo mounted at /work, then cd /work/src and run inference_pix2pix_turbo_harmonizer.py. Pin -u $(id -u):$(id -g) so outputs are owned by the host user. Output frames land in <input_dir>_<model_identifier>. Full docker run recipe and flag matrix in references/inference.md.

  6. Validate that the output frame count matches the input frame count, spot-check frames, and (if ground truth is available) run paired evaluation with PSNR/LPIPS — see references/evaluation.md.

  7. (Optional) Train or fine-tune. Download the dataset (or prepare JSON manifests in the documented format), then run src/train_pix2pix_turbo_harmonizer.py with the recommended hyperparameters. For fine-tuning, initialize from the released checkpoint with --pretrained_path /path/to/diffusion_harmonizer.pkl. Full recipe + NuRec data-pair recipes in references/training.md.

  8. (Optional) Teardown. Follow references/teardown.md to remove images, code clones, model weights, datasets, and outputs.

Examples

Example 1 — Enhance a folder of rendered frames

Run scripts/validate_setup.py, build the image once (see references/wrapper-image.md), then invoke inference_pix2pix_turbo_harmonizer.py inside the harmonizer-cosmos-env container with the repo checkout mounted at /work. From /work/src, point --input_image at the rendered frames, --model_path at /work/models/diffusion_harmonizer.pkl, set --model_identifier, and pass typical flags --timestep 250 --resolution 1024 --use_sched. Enhanced frames are written to <input_dir>_<model_identifier>. The canonical docker run command and the full flag matrix live in references/inference.md.

Example 2 — Quantitative PSNR / LPIPS evaluation

Prepare the paired test_dataset/{scene}/render + test_dataset/{scene}/gt layout, then run src/evaluate_test_dataset.py inside the container. See references/evaluation.md for the exact directory shape and the docker run command.

Example 3 — Fine-tune from the public checkpoint

Download nvidia/Harmonizer-Dataset, prepare the training JSON, then run src/train_pix2pix_turbo_harmonizer.py with the multi-GPU accelerate launch recipe in references/training.md. For fine-tuning add --pretrained_path /path/to/diffusion_harmonizer.pkl and use --fixing_data_weight 3 on the released dataset.

Example 4 — Non-temporal (frame-by-frame) enhancement

inference_pix2pix_turbo_harmonizer.py is temporal by default and uses previous enhanced frames as references (--offset_list -1 -2 -3 -4). When the user wants each frame enhanced independently (e.g. unordered images), add --nontemporal to disable temporal conditioning. Full command + --offset_list defaults in references/inference.md.

Consuming the inline Fixer via NRE

nre --enable-difix is still the right answer when the user wants NRE to enhance frames as part of rendering without a separate harmonizer checkout. That path is owned by the sibling nre skill. Do not mix the standalone DiffusionHarmonizer HF/Cosmos workflow with NRE's internal cache flags unless the NRE documentation for the user's tag explicitly says they share weights.

Use this standalone skill when the user wants the public DiffusionHarmonizer code, model card, training/evaluation scripts, or post-processing of frames that already exist on disk.

Prerequisites

The fail-fast check that enforces all of the above is scripts/validate_setup.py.

Scripts

ScriptPurposeUsage
scripts/validate_setup.pyVerify Docker, NVIDIA Container Toolkit, GPU architecture, git, Hugging Face CLI, token presence, and disk space. No network calls.run_script("scripts/validate_setup.py") or python scripts/validate_setup.py
scripts/.env.exampleTemplate for HF_TOKEN and optional NGC_API_KEY.cp scripts/.env.example .env && set -a && . ./.env && set +a

References

Limitations

  • Rendered inputs only. The model is tuned for neural-reconstruction renderings and object-insertion artifacts, not arbitrary real photos.
  • Primary model resolution is 576x1024. The inference script maps resolution key 1024 to 1024x576. Only 1024, 960, and 1360 are supported keys; 1024 matches the model-card operating point.
  • Temporal references and filename order matter. The inference script enhances frames in natural-sorted order and feeds previous outputs back as temporal references. Use zero-padded frame numbers, or pass --nontemporal for unordered images.
  • Container builds can be large. The runtime image, build cache, model weights, and optional dataset can exceed 100 GB.
  • Training is multi-GPU by default. The README command assumes 8 GPUs with bf16 mixed precision.
  • Public code evolves. The current README documents inference_pix2pix_turbo_harmonizer.py as the inference entry point; if a future checkout renames it, prefer the script and flags present in that checkout.

Troubleshooting (top 5)

Error / symptomMost common cause
docker: could not select device driver ... gpuNVIDIA Container Toolkit missing or Docker is not configured for the NVIDIA runtime.
docker pull 401 / 403 from nvcr.ioDocker is not authenticated to NGC, or the API key lacks container access.
hf download ... 401 / 403HF_TOKEN is missing/expired/lacks read scope, or the model/dataset license has not been accepted.
diffusion_harmonizer.pkl missingCheckpoint download path is wrong or incomplete. Re-run ./download_checkpoints.sh from the repo root.
Output files owned by rootThe docker run omitted -u $(id -u):$(id -g).

Full matrix in references/troubleshooting.md.

Teardown

A full workflow can leave large artifacts on disk: the Cosmos image, project image, build cache, harmonizer code checkout, Hugging Face model weights, optional dataset, evaluation outputs, and enhanced frames. Reclaim them with the inventory in references/teardown.md. Do not revoke HF_TOKEN or NGC_API_KEY as normal cleanup. Rotate a token only if you suspect it was leaked.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Nurec Fixer làm được gì?

Dùng để chạy NVIDIA DiffusionHarmonizer (bản kế nhiệm công khai của các quy trình Fixer cũ) nhằm nâng cao chất lượng, hài hòa, đánh giá hoặc tinh chỉnh khung hình góc nhìn mới từ các bản tái tạo NRE / NuRec / 3DGS / NeRF. KHÔNG dùng để huấn luyện bản thân quá trình tái tạo 3D (dùng `nre`) hoặc chuyển đổi cảm biến sang NCore (dùng `ncore`).

Vì sao nên dùng Nurec Fixer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Nurec Fixer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Nurec Fixer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/NVIDIA/nurec-skills/tree/main/skills/nurec-fixer. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Nurec Fixer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Nurec Fixer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Nurec Fixer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Nurec Fixer có miễn phí không?

Có. Kỹ năng này được NVIDIA phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇