RUDRA

Radiometric Dynamic-Range Conditioning for HDR-Aware Diffusion Models FXTD Studios Β· github.com/fxtdstudios/RUDRA

Two independent families live in this repository.

family what it does files
sdr2hdr/ takes an ordinary 8-bit frame and reconstructs scene-linear HDR 6
decoders (root) decode diffusion latents straight to scene-linear HDR, skipping the tone-mapped VAE 14

They share a name and a radiometric convention and nothing else. Pick the one that matches your problem.


sdr2hdr/ β€” single-image inverse tone mapping

A compact U-Net that predicts a residual on an analytic inverse-ACES tone map, not the image itself. Six channels in (SDR RGB plus the analytic baseline), five out (a log-domain residual and two masks). The curve does the mapping; the network supplies only what a curve cannot know.

sdr2hdr_image_v8 was withdrawn on 30 November 2026, as a precaution. The Netflix Open Content titles it was trained on are used under CC BY 4.0, with the attribution below. Its numbers stay below for the record. RUDRA's own masters use the analytic inverse by default; the files here are research models.

file params what it is
sdr2hdr_image_v8 1,196,197 withdrawn 30 Nov 2026 (see above). Was the optional model from 9 Oct 2026; trained with real SDR in the mix, 0 EV corpus (step 48,000)
sdr2hdr_shadow_v1 1,217,318 retired 9 Oct 2026 (the model the paper reports). v5 backbone plus a trained shadow gate, seed 20260901
sdr2hdr_shadow_s2 1,217,318 same recipe, seed 2
sdr2hdr_shadow_s3 1,217,318 same recipe, seed 3
sdr2hdr_image_v5 1,196,197 the backbone alone, no gate
sdr2hdr_image_v6 4,770,117 4Γ— capacity ablation, 64 base channels
sdr2hdr_temporal_v1 37,011 temporal refiner. Not an SDR2HDRNet and will not load as one

Input is 8-bit normalised sRGB RGB. Output is scene-linear RGB normalised to 10,000 nits, with diffuse white at 203 (ITU-R BT.2408).

Loading

Each file carries its own architecture config in its safetensors metadata, so nothing else is needed to build the right network:

import json, torch
from safetensors import safe_open
from safetensors.torch import load_file
from rudra.sdr2hdr import SDR2HDRNet          # pip install -e . from the GitHub repo

path = "sdr2hdr/sdr2hdr_shadow_v1.safetensors"
with safe_open(path, framework="pt") as f:
    config = json.loads(f.metadata()["config"])
model = SDR2HDRNet.from_config(config)
model.load_state_dict(load_file(path), strict=True)
model.eval()

SHA256SUMS and index.json sit beside the weights. The config also carries corpus_ev, which sets the analytic baseline the residual rides on: the withdrawn v8 was 0.0, every file here is the legacy -1. from_config reads it; do not drop it.

v8 on real SDR (withdrawn 30 Nov 2026; kept for the record)

Paired against the analytic inverse, 95% bootstrap CIs. real is 287 held-out Netflix Meridian frames, SDR from the Dolby Vision trim pass against its HDR10 grade (live action; never seen in training or selection). aces, oog and mix are rendered benches: the inverse's own curve, other curves, and a mix with codec damage.

bench PU21 dB vs inverse CVVDP JOD vs inverse
real (Meridian, 287) +0.02 [-0.03, +0.08], 38/287 frames ahead +0.020 [+0.003, +0.036]
oog -0.29 -0.09
mix -0.03 -0.12
aces -11.2 -0.87
  • The first model whose CVVDP interval is above the inverse on real SDR, and level with it on PU21. Against shadow_v1 on the same 287 frames: +4.14 dB [+4.10, +4.17], 287/287, +0.026 JOD.
  • It does not pass its own gate. Inside clipped highlights it is no better than the inverse (-0.36 stops at 0 EV, ties at +1 and +2 EV), and it lifts black below about 2 nits. On aces, where the inverse is exact, it loses 11 dB. That is why it is optional.

What it scores

429 held-out frames at native 1280Γ—720, PU21-PSNR and ColorVideoVDP JOD, against the analytic inverse-ACES baseline the model sits on top of. hard is the deployment condition (unknown tone curve, 4:2:0 chroma, banding, JPEG); clean is well-graded input the baseline already handles.

model clean dB clean JOD hard dB hard JOD
shadow_v1 +0.07 +0.113 +1.24 +0.389
shadow_s2 +0.71 +0.068 +0.96 +0.308
shadow_s3 +0.45 +0.089 +1.18 +0.358
mean Β± sd +0.41 Β± 0.33 +0.090 Β± 0.023 +1.12 Β± 0.15 +0.352 Β± 0.041
image_v5 βˆ’3.00 βˆ’0.046 +1.43 +0.443
image_v6 βˆ’2.75 +0.004 +0.96 +0.343

The three gate seeds are the only configurations that come out positive on all four measures.

Limitations, stated plainly

  • No published method has been scored on our split. Every number above is against our own analytic baseline. Read them as internal progress, not as a comparison, until that gap is closed.
  • The backbone alone regresses on clean input. image_v5 loses 3.0 dB of PU21-PSNR on well-graded frames, and the failure concentrates in low-dynamic-range scenes: the 60 worst average βˆ’10.76 dB at a median ground-truth peak of 238 nits, the 60 best +3.41 dB at 19,590 nits. The gate is what fixes it.
  • The metrics disagree, and it matters. That same 3.0 dB loss is βˆ’0.046 JOD in CVVDP, far below a just-noticeable difference. Do not quote the PU21 row without the JOD beside it.
  • The achievable gain is bounded by the input, not the model. A linear readout of the features explains 3% of the variance in the per-frame scale an oracle would use, and 79% of that variance sits within a condition rather than between. Capacity (4Γ—), corpus (6Γ—) and objective were each varied and none moved it.
  • Three seeds is a spread, not a distribution.
  • The temporal refiner is unevaluated. Its held-out set is 4 validation and 5 test clips of one scene each, too small to report.

Training data is documented in the GitHub README: Poly Haven HDRIs (CC0), HdM-HDR-2014 and HdM-HFR-2017 (academic licence), Netflix Chimera (CC BY 4.0), plus proprietary FXTD footage that is not redistributed. sdr2hdr_image_v8 adds real SDR/HDR10 frame pairs from Netflix Open Content (CC BY 4.0): Nocturne, Sparks and Sol Levante for training, Cosmos Laundromat for checkpoint selection, Meridian held out for test.

Attribution: Netflix Open Content (Chimera, Nocturne, Sparks, Sol Levante, Meridian: Β© Netflix, Inc.; Netflix's HDR re-grade of Cosmos Laundromat, original film Β© Blender Foundation, CC BY 3.0), licensed under CC BY 4.0. Frames were sampled, converted (colour space, resolution, crops) and used for training and testing; the footage is not redistributed. Netflix provides the material as is, without warranties, and does not endorse RUDRA.


Decoders β€” diffusion latents to scene-linear HDR

Diffusion models are trained on tone-mapped images, so their VAEs decode to a world where nothing is brighter than white. These replace that decoder and return scene-linear radiance instead.

Two sizes per backbone: full reconstructs more faithfully, turbo is roughly a tenth the size and fast enough to sit in a live graph.

huggingface-cli download fxtdstudios/RUDRA \
    --include "rudra_*_decoder_*.safetensors" \
    --local-dir "ComfyUI/models/radiance"

Then enable rudra_decoder in the Radiance HDR VAE Decode node and pick a decoder_size.

file size
rudra_full_decoder_flux_ema.safetensors 21.5 MB
rudra_full_decoder_sdxl_ema.safetensors 21.4 MB
rudra_full_decoder_wan_ema.safetensors 21.5 MB
rudra_full_decoder_zimage_ema.safetensors 21.5 MB
rudra_turbo_decoder_flux_ema.safetensors 2.2 MB
rudra_turbo_decoder_flux2_ema.safetensors 2.0 MB
rudra_turbo_decoder_flux2-klein_ema.safetensors 3.0 MB
rudra_turbo_decoder_qwen_ema.safetensors 2.2 MB
rudra_turbo_decoder_sdxl_ema.safetensors 2.1 MB
rudra_turbo_decoder_wan_ema.safetensors 2.2 MB
rudra_turbo_decoder_zimage_ema.safetensors 2.2 MB

Measured reconstruction quality, for the size we recommend per backbone. The table covers the recommended decoder per backbone, not every file above:

backbone VAE latent recommended PSNR_log
Flux.1 16ch / 8Γ— full 29.77
Wan 16ch / 8Γ— full 32.45
SDXL 4ch / 8Γ— turbo 33.86
Qwen-Image 16ch / 8Γ— turbo 26.67
Flux.2 Klein 128ch / 16Γ— turbo 28.57

Licence and citation

Non-commercial. The weights here are licensed for research, teaching, evaluation, benchmarking and personal use only (checkpoints/LICENSE), because one of their training sources (HdM-HDR-2014 / HdM-HFR-2017) is free for academic use only. The code that runs them is licensed under the Apache License 2.0. Commercial licensing: FXTD Studios.

If the SDR→HDR work is useful in yours:

@misc{rudra2026,
  title  = {What an 8-Bit Frame Can and Cannot Say About the Scene Behind It:
            bounds for inverse tone mapping, and a gate that reaches one of them},
  author = {{FXTD Studios}},
  year   = {2026},
  note   = {https://github.com/fxtdstudios/RUDRA}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support