Upscaling: Difference between revisions

From Hegemon Wiki
Jump to navigation Jump to search
mNo edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Benchmarks ==
{| class="wikitable sortable mw-collapsible"
{| class="wikitable sortable mw-collapsible"
|+
|+
Line 15: Line 16:
|720p
|720p
|1
|1
|3
|1
|2
|2
|7700MiB
|'''7700MiB'''
|854x480
|854x480
|1.9
|1.9
|-
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-mem.engine
|
|
|"
|720p
|
|
|1
|
|1
|'''1'''
|
|'''3948MiB'''
|
|854x480
|
|
|1.9
|-
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512.engine
|'''RealESRGAN_x4plus_anime_6B_fp16_opset18-mem.engine'''
|'''200x200'''
|'''720x1280'''
|1
|1
|1
|'''5436MiB'''
|'''480x480'''
|'''5fps'''
|-
|'''RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512.engine'''
|'''32x32'''
|'''512x512'''
|1
|1
|1
|'''2562MiB'''
|'''128x128'''
|1.6+
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512_'''i4_o4'''.engine
|32x32
|32x32
|32x32
|'''4'''
|512x512
|1
|1
|'''4'''
|3
|'''9524MiB'''
|128x128
|~2
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512_i4_o4.engine
|32x32
|32x32
|4
|1
|1
|'''1'''
|2562MiB
|'''2498MiB'''
|128x128
|128x128
|shit
|1.6+
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-'''mem2'''
|'''256x256'''
|'''512x1024'''
|1
|1
|1
|'''3994MiB'''
|256x256
|'''4.2'''
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-'''mem2'''
|'''480x480'''
|512x1024
|1
|1
|1
|'''3228MiB'''
|'''480x480'''
|'''5.0'''
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-'''mem2'''
|'''480x480'''
|'''1024x1024'''
|1
|1
|1
|'''6580MiB'''
|480x480
|5.0
|-
|RealESRGAN_x4plus_anime_6B_fp16_opset18-'''mem2'''
|'''480x480'''
|'''512x512'''
|1
|1
|1
|'''1712MiB'''
|480x480
|4.9
|-
|'''realesr-animevideov3.engine'''
|???
|1080p
|1
|1
|1
|'''1286MiB'''
|480x480
|'''30fps'''
|-
|'''AnimeJaNai_V2_UltraCompact_30k_op18_fp16_clamp.engine'''
|???
|1080p
|1
|1
|1
|'''718MiB'''
|480x480
|'''93fps'''
|}
|}

== ffmpeg ==
vspipe -c y4m inference.py - | ffmpeg -y -i - -f matroska - | mpv -

vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -f matroska - | mpv -

vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -c:v libx265 -c:a copy -c:s copy -map 0:v -map 1:a -map 1:s -f matroska - | mpv -

vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -c:v libx265 -c:a copy -c:s copy -map 0:v -map 1:a -map 1:s 15.mkv

Latest revision as of 06:47, 15 January 2024

Benchmarks[edit | edit source]

Model minSize maxSize ni bs num_streams memusage tilesize fps
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem.engine iforget, maybe like 256 720p 1 1 2 7700MiB 854x480 1.9
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem.engine " 720p 1 1 1 3948MiB 854x480 1.9
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem.engine 200x200 720x1280 1 1 1 5436MiB 480x480 5fps
RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512.engine 32x32 512x512 1 1 1 2562MiB 128x128 1.6+
RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512_i4_o4.engine 32x32 32x32 4 1 4 9524MiB 128x128 ~2
RealESRGAN_x4plus_anime_6B_fp16_opset18-32→512_i4_o4.engine 32x32 32x32 4 1 1 2498MiB 128x128 shit
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem2 256x256 512x1024 1 1 1 3994MiB 256x256 4.2
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem2 480x480 512x1024 1 1 1 3228MiB 480x480 5.0
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem2 480x480 1024x1024 1 1 1 6580MiB 480x480 5.0
RealESRGAN_x4plus_anime_6B_fp16_opset18-mem2 480x480 512x512 1 1 1 1712MiB 480x480 4.9
realesr-animevideov3.engine ??? 1080p 1 1 1 1286MiB 480x480 30fps
AnimeJaNai_V2_UltraCompact_30k_op18_fp16_clamp.engine ??? 1080p 1 1 1 718MiB 480x480 93fps

ffmpeg[edit | edit source]

vspipe -c y4m inference.py - | ffmpeg -y -i - -f matroska - | mpv -
vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -f matroska - | mpv -
vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -c:v libx265 -c:a copy -c:s copy -map 0:v -map 1:a -map 1:s -f matroska - | mpv -
vspipe -c y4m inference.py - | ffmpeg -y -i pipe: -i ~/tmp/Shugo\ Chara\ -\ 15\ \(480p\)\ .mkv -c:v libx265 -c:a copy -c:s copy -map 0:v -map 1:a -map 1:s 15.mkv