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

[Request] Batch-Upscaling Request #21

Closed
akai-katto opened this issue Jul 1, 2019 · 3 comments
Closed

[Request] Batch-Upscaling Request #21

akai-katto opened this issue Jul 1, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@akai-katto
Copy link
Contributor

Currently if a user wants to upscale multiple photos using waifu2x-ncnn-vulkan, it works as follows:

for every image in folder
| load vulkan runtime initialization
| load image
| upscale image
| save image

In a previous post you commented:

A really large portion of the consumed time is for the vulkan runtime initialization

If we can instead do

load vulkan runtime initialization
for every image in folder
| load image
| upscale image
| save image

We could save a lot of computational time. It could be used in dandere2x

https://github.com/aka-katto/dandere2x

and k4yt3x's video2x

https://github.com/k4yt3x/video2x

@nagadomi
Copy link

nagadomi commented Jul 1, 2019

Moreover, load/save image(Disk IO, PNG decode/encode) are can be parallelized with upscale image(GPU task).

@sat3ll
Copy link
Contributor

sat3ll commented Jul 1, 2019

Duplicate of point 2, #20

@nihui nihui added the enhancement New feature or request label Jul 10, 2019
@nihui
Copy link
Owner

nihui commented Jul 12, 2019

https://github.com/nihui/waifu2x-ncnn-vulkan/releases/tag/20190712
just posted a new waifu2x-ncnn-vulkan release, please let me know if you encounter problems

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

No branches or pull requests

4 participants