Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy Drag and Drop Acceptable Batchfile for Windows #45

Open
roflsunriz opened this issue Feb 9, 2023 · 2 comments
Open

Easy Drag and Drop Acceptable Batchfile for Windows #45

roflsunriz opened this issue Feb 9, 2023 · 2 comments

Comments

@roflsunriz
Copy link

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
Copy link
Author

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
Copy link
Author

roflsunriz commented Feb 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant