mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-26 15:52:04 +00:00
Feature Request For Automatic Tile Size #189
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FlowDownTheRiver on GitHub (May 20, 2022).
Is there a way to check the input image resolution ? If so ... We can set an automatic tile size based on the image resolution and checking available gpu memory.If the images are small ,we can set the tile size to 0,so gpu processes the whole image without dividing it into parts,if the image resolution goes beyond the certain resolution which can be counted as a large image,so program switches into tile mode.
I mean
Why? Because if we use tiles with a fixed number given by an argument(parameter) for every image with bat files,if the images are small we are wasting time and images gets processed slower.There is a gpu memory available there and we are not utilizing it.
If the images doesn't fit to gpu memory in the other scenario,this time checking available gpu memory and putting a "variable" tile size per image depending on the image resolution,provides using the best tile size,pushing limits for gpu memory and time efficient process.
I am just asking if this is possible and if you have time to implement a feature like that.
@FlowDownTheRiver commented on GitHub (May 28, 2022):
I found out using the highest tile size given what your gpu allows doesn't not necessarily gives the fastest results and the quality at the same time.Tile padding and tile size needs to be balanced to have seamless tiles processing and while keeping the speed and quality from my experiments with various settings. So please ignore my request.