Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tool for image magnification using the waifu2x/realsr model and Vulkan API.

License

NotificationsYou must be signed in to change notification settings

EETagent/waifu2x-ncnn-vulkan-macos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Waifu2X Icon

Waifu2X

Tool for image magnification using the waifu2x/realsr model and Vulkan API.
Version:1.7



Acknowledgement

Thanks

Thanks to@moeoverflow for the original repo.

Thanks to@shincurry for contributing to the UI of this project.

Usage

Single Mode

  1. ClickSingle in the top tab.
  2. Drag the image you want to enlarge to the left cell of the app.
  3. Adjust the settings at the bottom.
  4. Click2x! and the generated image will be displayed on the right.
  5. Drag the image from the right cell to the location where you want to save it (the file name will bewaifu2x-output.png).

screenshot

Multiple Mode

  1. ClickMultiple in the top tab
  2. Drag and drop images or directories into the table. (Only decodable images will be processed.)
  3. Adjust the settings at the bottom
  4. Click on2x! and the generated images will be saved to the location from where they originated with the.png extension. For example:

Input

.├── 1│   ├── IMG_2185.JPG│   ├── IMG_2211.JPG│   └── IMG_2212.JPG├── 2│   └── IMG_2208.PNG└── IMG_2213.JPG

Output

..├── 1│   ├── IMG_2185.JPG│   ├── IMG_2185.JPG.png│   ├── IMG_2211.JPG│   ├── IMG_2211.JPG.png│   ├── IMG_2212.JPG│   └── IMG_2212.JPG.png├── 2│   ├── IMG_2208.PNG│   └── IMG_2208.PNG.png├── IMG_2213.JPG└── IMG_2213.JPG.png

screenshot

Benchmark

To run the benchmark, click onwaifu2x-gui ->Benchmark.

screenshot

Build Instructions (macOS arm64)

brew install tuist cmake git-lfs# clone this repo firstgit clone --recurse-submodules --depth=1 https://github.com/EETagent/waifu2x-ncnn-vulkan-macos# change directorycd waifu2x-ncnn-vulkan-macos# check your cmake installationwhich cmake# generatetuist generate# buildtuist build --configuration Release --build-output-path build

Speed Comparison between Macs

Environment 0

  • MacBook Pro 14-inch 2023
  • macOS 14.0 (23A5286i)
  • Apple M2 Max
  • Apple M2 Max 30-core 32 GB
ModelImage SizeTarget SizeBlock SizeTotal Time(sec)GPU Memory(MB)
models-cunet200x200400x400400/200/1000.25/0.23/0.22240/240/49
models-cunet400x400800x800400/200/1000.38/0.34/0.36944/240/49
models-cunet1000x10002000x2000400/200/1001.17/1.17/1.28962/241/49
models-cunet2000x20004000x4000400/200/1003.86/4.03/4.48964/258/50
models-cunet4000x40008000x8000400/200/10014.53/15.21/17.23987/261/67
models-upconv_7_anime_style_art_rgb200x200400x400400/200/1000.18/0.15/0.15141/141/33
models-upconv_7_anime_style_art_rgb400x400800x800400/200/1000.22/0.20/0.21539/141/33
models-upconv_7_anime_style_art_rgb1000x10002000x2000400/200/1000.58/0.59/0.62541/142/49
models-upconv_7_anime_style_art_rgb2000x20004000x4000400/200/1001.89/1.93/2.06543/159/50
models-upconv_7_anime_style_art_rgb4000x40008000x8000400/200/1006.68/6.88/7.43566/162/51

noise: 2, scale: 2, gpuid: 0, tta mode: NO

Environment 1

  • MacBook Pro 15-inch 2018
  • macOS 10.14.6 (18G103)
  • Intel Core i9 8950HK
  • AMD Radeon Pro Vega 20
ModelImage SizeTarget SizeBlock SizeTotal Time(sec)GPU Memory(MB)
models-cunet200x200400x400400/200/1000.47/0.43/0.49613/613/172
models-cunet400x400800x800400/200/1000.97/0.88/0.952407/614/173
models-cunet1000x10002000x2000400/200/1003.56/3.61/4.182415/617/175
models-cunet2000x20004000x4000400/200/10012.72/13.22/15.492420/669/193
models-cunet4000x40008000x8000400/200/10049.79/51.51/60.602452/645/197
models-upconv_7_anime_style_art_rgb200x200400x400400/200/1000.26/0.24/0.20460/460/119
models-upconv_7_anime_style_art_rgb400x400800x800400/200/1000.47/0.40/0.401741/460/120
models-upconv_7_anime_style_art_rgb1000x10002000x2000400/200/1001.67/1.64/1.731765/463/121
models-upconv_7_anime_style_art_rgb2000x20004000x4000400/200/1006.12/6.11/6.491769/466/122
models-upconv_7_anime_style_art_rgb4000x40008000x8000400/200/10023.75/23.71/25.271801/489/142

noise: 2, scale: 2, gpuid: 0, tta mode: NO

Environment 2

  • MacBook Pro 15-inch 2018
  • macOS 10.14.6 (18G84)
  • Intel Core i9 8850HK
  • AMD Radeon 560X
ModelImage SizeTarget SizeBlock SizeTotal Time(sec)GPU Memory(MB)
models-cunet200x200400x400400/200/1002.00/0.53/0.56613/613/172
models-cunet400x400800x800400/200/1001.29/1.18/1.262407/614/173
models-cunet1000x10002000x2000400/200/1005.20/5.17/5.852415/617/175
models-cunet2000x20004000x4000400/200/10019.07/19.35/22.252420/669/193
models-cunet4000x40008000x8000400/200/10074.49/76.73/88.122452/644/197
models-upconv_7_anime_style_art_rgb200x200400x400400/200/1000.31/0.27/0.27460/460/119
models-upconv_7_anime_style_art_rgb400x400800x800400/200/1000.65/0.54/0.551741/460/119
models-upconv_7_anime_style_art_rgb1000x10002000x2000400/200/1002.41/2.34/2.481765/463/121
models-upconv_7_anime_style_art_rgb2000x20004000x4000400/200/1008.74/8.84/9.431769/466/122
models-upconv_7_anime_style_art_rgb4000x40008000x8000400/200/10032.66/33.00/35.291801/489/142

noise: 2, scale: 2, gpuid: 0, tta mode: NO

Environment 3

  • MacBook Pro 15-inch 2018
  • macOS 10.14.6 (18G103)
  • Intel Core i9 8950HK
  • Intel UHD Graphics 630
ModelImage SizeTarget SizeBlock SizeTotal Time(sec)GPU Memory(MB)
models-cunet200x200400x400400/200/1000.95/0.99/0.87616/616/176
models-cunet400x400800x800400/200/1002.53/2.27/2.482408/616/176
models-cunet1000x10002000x2000400/200/10012.40/12.00/13.312408/616/176
models-cunet2000x20004000x4000400/200/10044.50/46.81/52.132408/669/196
models-cunet4000x40008000x8000400/200/100175.64/185.56/222.582431/637/196
models-upconv_7_anime_style_art_rgb200x200400x400400/200/1001.07/1.27/0.83466/466/125
models-upconv_7_anime_style_art_rgb400x400800x800400/200/1002.30/1.09/1.111746/466/125
models-upconv_7_anime_style_art_rgb1000x10002000x2000400/200/1006.30/5.70/5.921762/466/125
models-upconv_7_anime_style_art_rgb2000x20004000x4000400/200/10022.12/22.48/23.711762/466/125
models-upconv_7_anime_style_art_rgb4000x40008000x8000400/200/10087.28/89.11/93.981780/482/141

noise: 2, scale: 2, gpuid: 1, tta mode: NO

Environment 4

  • MacBook 12-inch Early 2016
  • macOS 10.14.6 (18G84)
  • Intel Core m7 6Y75
  • Intel HD Graphics 515
ModelImage SizeTarget SizeBlock SizeTotal Time(sec)GPU Memory(MB)
models-cunet200x200400x400400/200/1001.12/1.41/1.23616/616/176
models-cunet400x400800x800400/200/1003.06/2.90/3.342408/616/176
models-cunet1000x10002000x2000400/200/10018.29/17.81/19.892408/616/176
models-cunet2000x20004000x4000400/200/10066.55/71.79/85.832408/665/196
models-cunet4000x40008000x8000400/200/100288.38/337.44/385.852431/637/196
models-upconv_7_anime_style_art_rgb200x200400x400400/200/1000.63/0.69/0.53466/466/125
models-upconv_7_anime_style_art_rgb400x400800x800400/200/1001.62/1.43/1.471746/466/125
models-upconv_7_anime_style_art_rgb1000x10002000x2000400/200/1009.19/9.06/9.461762/466/125
models-upconv_7_anime_style_art_rgb2000x20004000x4000400/200/10035.52/37.66/41.571762/466/125
models-upconv_7_anime_style_art_rgb4000x40008000x8000400/200/100199.20/182.04/159.111780/482/141

noise: 2, scale: 2, gpuid: 0, tta mode: NO

Speed Comparison (not really) with waifu2x-caffe-cui & waifu2x-ncnn-vulkan

Environment (waifu2x-caffe-cui & waifu2x-ncnn-vulkan)

  • Windows 10 1809
  • AMD R7-1700
  • Nvidia GTX-1070
  • Nvidia driver 419.67
  • CUDA 10.1.105
  • cuDNN 10.1

Environment (waifu2x-ncnn-vulkan-macos)

  • macOS 10.14.6 (18G103)
  • Intel Core i9 8950HK
  • AMD Radeon Pro Vega 20

cunet

Image SizeTarget SizeBlock SizeTotal Time(s)GPU Memory(MB)
waifu2x-ncnn-vulkan-macOS200x200400x400400/200/1000.46/0.44/0.43621/621/180
waifu2x-ncnn-vulkan200x200400x400400/200/1000.86/0.86/0.82638/638/197
waifu2x-caffe-cui200x200400x400400/200/1002.54/2.39/2.363017/936/843
waifu2x-ncnn-vulkan-macOS400x400800x800400/200/1000.91/0.84/0.922415/621/180
waifu2x-ncnn-vulkan400x400800x800400/200/1001.17/1.04/1.022430/638/197
waifu2x-caffe-cui400x400800x800400/200/1002.91/2.43/2.73202/1389/1178
waifu2x-ncnn-vulkan-macOS1000x10002000x2000400/200/1003.54/3.58/4.182422/624/182
waifu2x-ncnn-vulkan1000x10002000x2000400/200/1002.35/2.26/2.462430/638/197
waifu2x-caffe-cui1000x10002000x2000400/200/1004.04/3.79/4.353258/1582/1175
waifu2x-ncnn-vulkan-macOS2000x20004000x4000400/200/10012.83/13.25/15.442426/676/200
waifu2x-ncnn-vulkan2000x20004000x4000400/200/1006.46/6.59/7.492430/686/213
waifu2x-caffe-cui2000x20004000x4000400/200/1007.01/7.54/10.113258/1499/1200
waifu2x-ncnn-vulkan-macOS4000x40008000x8000400/200/10049.56/51.44/60.562459/651/203
waifu2x-ncnn-vulkan4000x40008000x8000400/200/10022.78/23.78/27.612448/654/213
waifu2x-caffe-cui4000x40008000x8000400/200/10018.45/21.85/31.823325/1652/1236

upconv_7_anime_style_art_rgb

Image SizeTarget SizeBlock SizeTotal Time(s)GPU Memory(MB)
waifu2x-ncnn-vulkan-macOS200x200400x400400/200/1000.23/0.20/0.22465/465/125
waifu2x-ncnn-vulkan200x200400x400400/200/1000.74/0.75/0.72482/482/142
waifu2x-caffe-cui200x200400x400400/200/1002.04/1.99/1.99995/546/459
waifu2x-ncnn-vulkan-macOS400x400800x800400/200/1000.49/0.42/0.411747/466/125
waifu2x-ncnn-vulkan400x400800x800400/200/1000.95/0.83/0.811762/482/142
waifu2x-caffe-cui400x400800x800400/200/1002.08/2.12/2.11995/546/459
waifu2x-ncnn-vulkan-macOS1000x10002000x2000400/200/1001.67/1.60/1.681770/468/127
waifu2x-ncnn-vulkan1000x10002000x2000400/200/1001.52/1.41/1.441778/482/142
waifu2x-caffe-cui1000x10002000x2000400/200/1002.72/2.60/2.681015/570/459
waifu2x-ncnn-vulkan-macOS2000x20004000x4000400/200/1006.11/5.89/6.181774/472/128
waifu2x-ncnn-vulkan2000x20004000x4000400/200/1003.45/3.42/3.631778/482/142
waifu2x-caffe-cui2000x20004000x4000400/200/1003.90/4.01/4.351015/521/462
waifu2x-ncnn-vulkan-macOS4000x40008000x8000400/200/10022.92/22.70/24.161806/495/147
waifu2x-ncnn-vulkan4000x40008000x8000400/200/10011.16/11.29/12.071796/498/158
waifu2x-caffe-cui4000x40008000x8000400/200/1009.24/9.81/11.16995/546/436

Packages

No packages published

Languages

  • C++90.6%
  • C6.1%
  • C#0.7%
  • Python0.7%
  • Lua0.6%
  • Objective-C0.4%
  • Other0.9%

[8]ページ先頭

©2009-2025 Movatter.jp