nihui / realcugan-ncnn-vulkan

real-cugan converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
MIT License
771 stars 46 forks source link

Easy Drag and Drop Acceptable Batchfile for Windows #45

Open roflsunriz opened 1 year ago

roflsunriz commented 1 year ago

This isn't issue for technically but I don't know where to make so I made here... Enlarges to x2(default) and uses model models-pro, and add "x2" to the end of file name

@echo off
cd "%~dp0"
realcugan-ncnn-vulkan -i "%~1" -m models-pro -o "%~n1x2.png"
pause
roflsunriz commented 1 year ago

Extend for multiple input

@echo off
cd "%~dp0"
for %%q in (%*) do (
echo %%q
realcugan-ncnn-vulkan -i %%q -m models-pro -o "%%~nqx2.png"
)
pause
roflsunriz commented 1 year ago

Little fix for using drag and dropped current directory

@echo off
cd %~dp1
for %%q in (%*) do (
echo %%q
"path-to-realcugan-ncnn-vulkan\realcugan-ncnn-vulkan-20220728-windows\realcugan-ncnn-vulkan.exe" -i %%q -m models-pro -o "%%~nqx2.png"
)
pause