Skip to content

Instantly share code, notes, and snippets.

@amb
Created August 23, 2022 21:39
Show Gist options
  • Save amb/2ac6f03321489c540ecae5915b189a3f to your computer and use it in GitHub Desktop.
Save amb/2ac6f03321489c540ecae5915b189a3f to your computer and use it in GitHub Desktop.
ESRGAN auto upscale
@echo %*
@echo off
magick %* input.jpg
F:\apps\esrgan\realesrgan-ncnn-vulkan.exe -i input.jpg -o esr_output.jpg -n realesrgan-x4plus
magick esr_output.jpg -scale 50%% esr\\%~n1.jpg
del input.jpg
del esr_output.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment