Skip to content

Models (v1)

As of June 2026, this repository ships a new generation of VMAF models, referred to as VMAF v1. These models have demonstrated better accuracy compared to the previous set of models (VMAF v0). Netflix describes them in the tech blog. For the previous generation of models, see overview.md.

The v1 models are ported verbatim from Netflix upstream (commit 4718b4f5f). They live under model/vmaf_v1.0.16/ (and model/vmaf_v1.0.16_hfr/ for the high-frame-rate variants) and are selected via the --model option, in the same way as the v0 models.

vmaf_v1.0.16_3d0h is this fork's default model

Since ADR-1169, scoring without --model uses vmaf_v1.0.16_3d0h, and the 4K ladder uses vmaf_v1.0.16_1d5h_2160. Upstream Netflix still defaults to vmaf_v0.6.1, so the same command gives different numbers on upstream and on this fork: pin --model version=vmaf_v0.6.1 when you need the old values.

There is no NEG model for v1

There is no NEG counterpart to any v1 model. To score with a NEG model, name a v0.6.1 one: --model version=vmaf_v0.6.1neg (or vmaf_4k_v0.6.1neg). The --neg flag belongs to vmaf-tune; see VMAF NEG.

Overview of VMAF v1 models

VMAF v1 supports the following models:

  • Standard 1080p Model: Calibrated for 1080p video viewed at a standard 3H distance. It uses an operating range of [0, 100].
  • Phone Model: Derived by setting the normalized viewing distance to 5H (based on experimental data), this model adjusts the DLM, AIM, and chroma feature calculations to reflect reduced artifact visibility on smaller screens viewed from a greater relative distance. It retains the standard [0, 100] range.
  • 4K Model: Two v1 4K models are released:
  • A 1.5H variant, based on a discerning 4K@1.5H viewing condition. This variant is conceptually similar to its v0 4K counterpart and operates on a [0, 100] range. For most users, this variant is the default choice.
  • A 3H variant, based on a consumer-like 4K@3H viewing condition. This variant operates on a [0, 110] range, which helps to quantify the additional perceptual benefit of 4K resolution over 1080p when both are viewed at 3H.

VMAF v1 should ideally be applied at 10-bit precision for SDR, which helps more accurately capture the presence of banding. Even if the encoded video is 8-bit, VMAF can still be measured at 10 bits by appropriately preprocessing both video inputs.

Which model file should I use?

Scenario Display Normalized viewing distance Model file Score range
Standard 1080p 1080p 3H model/vmaf_v1.0.16/vmaf_v1.0.16_3d0h.json [0, 100]
Phone 1080p 5H model/vmaf_v1.0.16/vmaf_v1.0.16_5d0h.json [0, 100]
4K default 2160p 1.5H model/vmaf_v1.0.16/vmaf_v1.0.16_1d5h_2160.json [0, 100]
4K consumer TV 2160p 3H model/vmaf_v1.0.16/vmaf_v1.0.16_3d0h_2160.json [0, 110]

Each model is also embedded as a built-in (-Dbuilt_in_models=true, the default), so it can be selected by version= without a file path:

vmaf \
    --reference ref.yuv \
    --distorted dis.yuv \
    --width 1920 --height 1080 --pixel_format 420 --bitdepth 10 \
    --model version=vmaf_v1.0.16_3d0h \
    --output output.xml

Example invocation using an explicit model path:

vmaf \
    --reference ref.yuv \
    --distorted dis.yuv \
    --width 1920 --height 1080 --pixel_format 420 --bitdepth 10 \
    --model path=model/vmaf_v1.0.16/vmaf_v1.0.16_3d0h.json \
    --output output.xml

Specifying encode-side parameters

If the encode-side width, height, and bit depth of the distorted video are known (i.e., the dimensions and bit depth at which the video was actually encoded, before any rescaling for display), they can be passed to the CAMBI feature used by VMAF as additional --model parameters. For example, if we have a 1280x720 8-bit encoded video that is displayed on a 1080p display, we measure VMAF at a 1920x1080 resolution as follows:

vmaf \
    --reference ref.yuv \
    --distorted dis.yuv \
    --width 1920 --height 1080 --pixel_format 420 --bitdepth 10 \
    --model path=model/vmaf_v1.0.16/vmaf_v1.0.16_3d0h.json:cambi.enc_width=1280:cambi.enc_height=720:cambi.enc_bitdepth=8 \
    --output output.xml

These overrides are merged into the model's CAMBI feature options, so the CAMBI instance evaluated by VMAF is the one that takes them into account — no separate CAMBI instance is registered. When enc_width/enc_height/enc_bitdepth are not provided, CAMBI falls back to the input width/height and bitdepth.

Model-declared conversion target

A model file may carry an optional conversion_target block inside model_dict. It names the colorspace the model's features are defined in, so that libvmaf converts the input pictures to it before scoring (used by the HDR models below):

"conversion_target": {
  "colorspace": {"range": "limited", "primaries": "bt2020", "trc": "smpte2084", "matrix": "ictcp"},
  "pixel_format": "420",
  "bit_depth": 10,
  "resolution": {"display": 1080}
}
Key Required Values
colorspace.range yes limited, full
colorspace.primaries yes bt709, bt2020, smpte432
colorspace.trc yes bt709, smpte2084
colorspace.matrix yes bt709, bt2020nc, ictcp
pixel_format no "420", "422", "444"; absent keeps the source's
bit_depth no integer 8 to 16; absent keeps the source's
resolution.display no 1080, 2160; absent keeps the source's size
assumed_color_if_untagged no an object with the four colorspace keys; absent means none

With resolution.display, both inputs are scaled so that their short side equals the display resolution, keeping the orientation and the aspect ratio; the long side is rounded to an even number of pixels. Upscaling uses bicubic filtering, downscaling Lanczos, and a source whose short side already equals the display resolution keeps its size exactly. A source wider than 4:1 is rejected, and every model of a run must declare the same display resolution.

The reference and the distorted input may have different sizes when the model names a display resolution. Both are then scaled to the size the reference scales to, each with its own filter: bicubic when that picture grows, Lanczos when it shrinks, none when it is already that size. The two must have the same orientation, and their scaled long sides may differ by at most 2 pixels, which covers the rounding to even (854x480 and 1280x720 both scale to about 1920x1080). A 16:9 input against a 4:3 one, or a landscape input against a portrait one, is rejected with -EINVAL. Without a display resolution both inputs must have the same size, and every picture of a run must have the size of the first.

With assumed_color_if_untagged, a run whose reference and distorted inputs both have no colorimetry at all is scored as if both carried the assumed colour (Netflix/vmaf 272c596770); the library logs a warning once per run when it does so. Only fully untagged pairs take it: an input with some attributes set and others unknown is still rejected, and so is a pair where one input is tagged and the other is not. Every model of a run must declare the same assumed colour or none.

Loading a model rejects (-EINVAL) an unknown name, a missing colour attribute, an unknown value, an assumed_color_if_untagged that is not an object with all four colour attributes, a bit_depth outside 8 to 16, a resolution other than {"display": 1080} or {"display": 2160} and a block without colorspace. With a target, vmaf_read_pictures() needs the source colorimetry of both inputs (CLI: input colorimetry; C: vmaf_set_input_colorimetry()), skips the conversion for a picture that already matches, and requires every model of a run to declare the same target or none. See Pictures.

High-frame-rate (HFR) content

For high-frame-rate (HFR) content, VMAF v1 provides _hfr model variants under model/vmaf_v1.0.16_hfr/. The model-selection logic above carries over identically — just substitute the _hfr directory and filename.

HFR here means frame rates roughly double the common 24/30 fps cases, such as 60 fps. The _hfr variants are calibrated for the ~50/60 fps regime.

Note

"HFR" can refer to higher frame rates in some applications; for these models it means the ~50/60 fps regime above.

Compared to the standard models, the _hfr variants use a wider, five-frame temporal motion window with moving-average smoothing. The SAD of frame n is taken between frames n-2 and n, and motion2 of frame n is the smaller of the SADs on both sides of it (so it reads frames n-3, n-1 and n+1); see Motion, five-frame window. This reduces the quality under-prediction that v0 showed at higher frame rates without inflating scores from the denser inter-frame signal.

HFR handling remains an area of active improvement: the current variants don't fully capture the perceptual impact of high frame rates, and Netflix expects to refine it in future releases.

HDR models

VMAF v1 also supports a set of models that are applicable to HDR content. These models are prefixed by "hdr_" and the naming convention follows that of the SDR models. For example, model/hdr_vmaf_v1.1.8/hdr_vmaf_v1.1.8_3d0h.json corresponds to the default 1080p 3H model applicable to standard frame rate.

To measure VMAF on a pair of HDR videos, the videos are first converted to a common target: PQ, BT.2020 primaries, represented in the ICtCp color space, in 4:2:0 chroma format at 16-bit precision (yuv420p16le). Inputs with a different chroma format or bit depth, for example 4:4:4 or 10-bit, are converted to it as well. HDR model files specify this conversion_target explicitly, and libvmaf converts the reference and distorted pictures to those target attributes before computing features. Because the conversion depends on what the input actually is, the colorimetry of the inputs must be specified:

  • On the command line, describe each input for raw yuv/y4m with --color_range_ref, --color_primaries_ref, --color_trc_ref and --color_matrix_ref for the reference, and the same flags with the _dist suffix for the distorted video. All four must be given for an input, and the two inputs may differ. When both inputs have an HDR transfer function and no model is selected, an HDR model is used by default.
  • When using the library directly, set the colour of each input before the first picture is read: vmafx_context_set_default_color() in the VMAFx API (or the colour fields of each imported frame), vmaf_set_input_colorimetry() in the libvmaf compatibility API. See pictures.

If a model declares a conversion_target and the inputs do not fully specify their colorimetry, the library returns an error that names the missing attributes, instead of guessing. Models without a conversion_target, such as the SDR models above, are unaffected and never convert.

The colorimetry flags and the input colour only take effect with a model that declares a conversion_target. If you select an SDR model for HDR inputs, no conversion is applied and no warning is shown, so the SDR model scores the HDR pictures as if they were SDR and the result is not meaningful. Use an HDR model for HDR content.

HDR models also declare resolution.display (1080 or 2160), the display resolution they score at. Both pictures are scaled so their short side equals it: a 3840x2160 input on a 1080 model is scored at 1920x1080, and a 1280x720 input on a 2160 model at 3840x2160. Portrait sources keep their orientation (720x1280 on a 1080 model is scored at 1080x1920). A source whose aspect ratio is wider than 4:1 is rejected. The reference and distorted videos must be the same size, and models in one run must share the same resolution.display.

The conversion is done with zimg, which is enabled by default in libvmaf (ADR-3396; opt-out builds with -Denable_zimg=false return -ENOTSUP).

HDR scores agree to 5 decimal places across x86-64 builds and to 3 decimal places on aarch64 and macOS. The scoring itself is bit-exact on all of them: the same converted pictures give the same value for every feature of every frame on x86-64, Ubuntu ARM and macOS. The difference comes from the zimg conversion to ICtCp, whose floating-point path rounds differently on those platforms; on the pinned test material it moves the pooled score by up to 3.5e-4 on macOS and 7e-5 on Ubuntu ARM. The HDR pin test (python/test/hdr_models_pin_test.py, HDR_PIN_PLACES) asserts 5 places on x86-64 and 3 places on aarch64 and macOS for that reason.

Example invocation for a pair of HDR10 videos:

./build/tools/vmaf \
    --reference ref.yuv \
    --distorted dis.yuv \
    --width 3840 --height 2160 --pixel_format 420 --bitdepth 10 \
    --color_range_ref limited --color_primaries_ref bt2020 --color_trc_ref pq --color_matrix_ref bt2020nc \
    --color_range_dist limited --color_primaries_dist bt2020 --color_trc_dist pq --color_matrix_dist bt2020nc \
    --model path=model/hdr_vmaf_v1.1.8/hdr_vmaf_v1.1.8_3d0h.json \
    --output output.xml

Sample subjective dataset results

Spearman rank correlation (SRCC) with subjective scores on LIVE-HDR-VQA and the HDR subsets of ICME-2025 and LIVE-HDR-SDR:

Model LIVE-HDR-VQA ICME-2025 (HDR) LIVE-HDR-SDR (HDR)
HDR-VMAF v1.1.8 4K@1.5H 0.8471 0.7420 0.9316

More results will be provided in an upcoming publication.

Fork status (VMAFX-specific)

The four SDR (non-HFR) v1.0.16 models — vmaf_v1.0.16_3d0h, vmaf_v1.0.16_3d0h_2160, vmaf_v1.0.16_5d0h, and vmaf_v1.0.16_1d5h_2160 — are fully supported on the fork's CPU path and score correctly (the 1080p 3H model reproduces the upstream golden VMAF of 82.816060 on the Netflix src01 reference pair; before ADR-1477 the fork printed 82.816059).

The four _hfr variants (vmaf_v1.0.16_hfr_3d0h, vmaf_v1.0.16_hfr_3d0h_2160, vmaf_v1.0.16_hfr_5d0h, vmaf_v1.0.16_hfr_1d5h_2160) score on the CPU since ADR-1478. They set motion_five_frame_window=true and motion_moving_average=true on the motion feature (Motion, five-frame window); the fork returned -ENOTSUP for the first of the two until then. Per frame, every feature and the model score equal upstream Netflix 9e48141b at 17 significant digits on the measured clips, on the scalar, AVX2 and default paths, serial and with worker threads.

build/tools/vmaf \
    --reference ref.yuv --distorted dist.yuv \
    --width 1920 --height 1080 --pixel_format 420 --bitdepth 8 \
    --model version=vmaf_v1.0.16_hfr_3d0h \
    --output /dev/stdout

On --backend cuda, sycl and hip an _hfr model runs its motion feature on the device as well: the motion twins compute the five-frame window with the CPU's bits (ADR-1491). On --backend metal the CPU motion extractor computes it and the other features stay on the device. The JSON receipt lists which extractor ran where.

GPU and SIMD acceleration (fork-specific)

The v1 models, the _hfr models included, run on the CPU (scalar and AVX2 / AVX-512 / NEON SIMD) and on the CUDA, SYCL, HIP and Metal backends. Only the CPU scalar fixed-point path is the archival reference the Netflix golden-data checkpoints assert against. See overview.md for the backend table and backends for setup.