Skip to content
项目

keijiro/Waifu2xBarracuda

在 GitHub 查看

关于

Waifu2x Unity Barracuda implementation

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
-1
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Waifu2xBarracuda

Waifu2xBarracuda is a Waifu2x implementation with the Unity Barracuda neural network inference library.

Comparisons

  • Left: Bilinear filter only
  • Right: 200% upscaling with Waifu2x + Bilinear filter

screenshot

screenshot

screenshot

screenshot

How To Use

  • Create a Waifu2x.Waifu2xScaler object with specifying a Waifu2x resource set object.
  • Call CreateScaledTexture with a source texture. It returns a RenderTexture object with 200% size.
  • Dispose the Waifu2x.Waifu2xScaler object when it's no longer needed.
using (var scaler = new Waifu2xScaler(resourceSet))
{
    texture_foo_x2 = scaler.CreateScaledTexture(texture_foo);
    texture_bar_x2 = scaler.CreateScaledTexture(texture_bar);
    ...
}

At the moment, this package only contains the upconv_7 anime style models. There are four models for different noise filter levels. Usually, the strongest one (noise3) gives good results, but you should decrease the strength if the image contains detailed texture elements.

Acknowledgements

ONNX files

The ONNX files contained in the Assets/Waifu2x/ONNX are converted by tcyrus. Please check the waifu2x-onnx repository for further details.

Test assets

This repository contains the following image materials:

探索相关项目

加载中…