/ Модель

Характеристики

Лицензия
BSD 3-Clause
Опубликована
25 окт 2026

realesr-animevideov3-onnx

Преобразование изображенийИзображение, текст → изображение3 профессии
0скачиваний за 30 дней0лайковвеса обновлены25 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

ONNX-конверсия Real-ESRGAN realesr-animevideov3 увеличивает разрешение аниме-изображений и видеокадров в четыре раза.

Это конверсия Real-ESRGAN realesr-animevideov3 в формат ONNX, подготовленная Tomoali на основе весов Xintao Wang из репозитория xinntao/Real-ESRGAN. Модель SRVGGNetCompact увеличивает разрешение изображений и кадров аниме-видео в 4 раза; вход — RGB-изображение с размерностью NCHW и значениями от 0 до 1, выход имеет вчетверо большие высоту и ширину.

В репозитории доступны варианты fp32 для ONNX Runtime, включая DirectML и CPU, и bf16 с приведением типов для VitisAI execution provider на AMD Ryzen AI NPU. Экспорты имеют фиксированные размеры входа 256×256 или 512×512. Для варианта NPU с разрезанным хвостом README описывает выполнение завершающих операций на CPU. Лицензия — BSD 3-Clause. Модель предназначена для увеличения и восстановления аниме-изображений; фиксированная форма входа ограничивает прямую обработку кадров других размеров.

Сценарии применения

  • увеличение разрешения кадров аниме-видео в 4 раза
  • апскейл аниме-иллюстраций для просмотра на больших экранах
  • восстановление мелких деталей в изображениях аниме
  • ускорение апскейла на AMD Ryzen AI NPU через VitisAI
  • апскейл изображений через ONNX Runtime и DirectML

Ограничения

Экспорты принимают только фиксированные размеры входа 256×256 или 512×512, поэтому изображения других размеров нужно предварительно подготовить. Для компиляции bf16-модели на NPU README указывает длительную первую настройку и зависимость кэша от версий Ryzen AI Software и драйвера.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

realesr-animevideov3 — ONNX (fp32 for DirectML, bf16 for the AMD Ryzen AI NPU)

Fixed-shape ONNX exports of realesr-animevideov3 (Real-ESRGAN, SRVGGNetCompact, 4x, anime video) by Xintao Wang, from the weights published in xinntao/Real-ESRGAN.

  • *_fp32.onnx runs on any ONNX Runtime execution provider. It is used with DirectML on an AMD iGPU.
  • *_bf16cast.onnx is for the ONNX Runtime VitisAI execution provider of Ryzen AI Software 1.8.0 on an XDNA2 NPU.

Input is RGB in [0, 1], float32, NCHW, 3 channels. Output is 4x the input height and width.

Files

FileInput → outputPrecisionTargetSHA-256
animevideov3_nchw_256x256_fp32.onnx1x3x256x256 → 1x3x1024x1024fp32DirectML / CPU139f166bd2b955c7d4cd31ca2616eb97dacc4365c1c315d880735ce72a0663d9
animevideov3_nchw_512x512_fp32.onnx1x3x512x512 → 1x3x2048x2048fp32DirectML / CPU8490f877bc3461ad0d8d7f256549ab1560e25ccb72ed8500ec6396c41935d691
animevideov3dp_nchw_512x512_bf16cast.onnx1x3x512x512 → 1x3x2048x2048bf16 (cast)VitisAI EP, whole model3360e2c051d4ee7ee80452066d8a1a64fa3cba030f464df7926eaf1d746dac4a
animevideov3dp_body_nchw_512x512_bf16cast.onnx1x3x512x512 → 1x48x512x512bf16 (cast)VitisAI EP, body only9debfe8a17eeb8b4c3e8ee72fd6cb3b29ea6f0f49338136267f68d5e95fb11cd
animevideov3dp_body_nchw_512x512.tail.jsonmanifest for the body—CPU post-processingaeb0d93ffd4bc066a60bf787612aad6a299a27f0ec4637bafbf283706ee2b2d9

dp in a file name means the PReLU activations are decomposed into two ReLU branches (PReLU(x) = ReLU(x) - a * ReLU(-x)), which the VAIML compiler of Ryzen AI 1.8.0 maps onto the NPU as a single subgraph.

The body file is the same bf16 model with the final DepthToSpace(blocksize=4, CRD) and the nearest-neighbour skip connection (Resize + Add) cut off. The manifest describes that tail; the host runs it on the CPU with a few lines of NumPy. This moves a memory-bound operation off the NPU and produces output bit-identical to the whole model (tail-cut.md).

How the files were made

  1. Weights realesr-animevideov3.pth → fixed-shape fp32 ONNX with scripts/npu/export_animevideov3.py (SRVGGNetCompact reimplementation, opset 17, no dynamic axes, onnxsim). The dp variant is the same export with PReLU decomposed.
  2. fp32 → bf16: python -m quark.onnx.tools.convert_fp32_to_bf16 --input <dp fp32> --output <dp bf16cast> --format with_cast (AMD Quark, from the Ryzen AI 1.8.0 environment; no calibration data).
  3. Tail cut: scripts/npu/split_tail.py, which also verifies body + NumPy tail == whole model on the CPU EP (max abs diff < 1e-5).

Running on the NPU

The VitisAI EP compiles the bf16 model with VAIML when the first session is created. On a Ryzen AI 7 PRO 350 this takes about 15 minutes and up to 1.9 GB of RAM; the result is cached (cache_dir / cache_key session options) and later sessions start in seconds. The cache is tied to the Ryzen AI Software and NPU driver versions, so it is not published here; compile it on the target machine.

Measured on a Ryzen AI 7 PRO 350 (XDNA2 NPU, Radeon 860M, 32 GB LPDDR5-8000, Ryzen AI SW 1.8.0, NPU driver 32.0.203.329), one 854x480 frame → 4x, including tiling and merge, steady state:

ExecutionTime per framePSNR vs fp32 output
iGPU, DirectML, fp32 (256–512 tiles)0.46 s—
NPU, VitisAI EP, bf16, power mode Default (512 tiles)0.47 s49.4 dB
NPU, VitisAI EP, bf16, power mode Turbo0.35 s49.4 dB

Details of the measurement, the compiler workarounds and the tail cut are in tomhda/ryzen-ai-npu-super-resolution-notes.

License and attribution

The model weights are by Xintao Wang and contributors, released under the BSD 3-Clause License (xinntao/Real-ESRGAN). The ONNX files here are format conversions of those weights and carry the same license; the original notice is in LICENSE-BSD-3-Clause-Real-ESRGAN.txt.

This is an independent, personal conversion. It is not affiliated with or endorsed by AMD or the Real-ESRGAN authors. AMD, Ryzen and Ryzen AI are trademarks of Advanced Micro Devices, Inc.

These files are also the model kit of TOGU SCALER, a Windows upscaler that runs them on DirectML and on the Ryzen AI NPU.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели «картинка → картинка» пока не запускаются: нужен ввод изображения для diffusion.

Ревизия весов
903f497

0 моделей