upscayl / upscayl

🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Home Page:https://upscayl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

High memory usage when upscaling a lot of images

ToniLipponen opened this issue · comments

Checklist

Describe the Bug

When upscaling many images, the memory usage keeps climbing higher and higher until the OS runs out of memory.

To Reproduce

Batch upscale a lot of images and watch the memory usage.

Upscayl Version (or commit hash)

2.11.0

Platform

Linux

OS Version

Arch Linux

GPU Name

Nvidia RTX 2070

Expected Behavior

I think memory should be freed at some point during batch upscaling.

Screenshots

No response

Logs

-

How high is it? You didn't mention.

Depends on size of source image, whether jpg or png, etc. I found I have to work on batches of less than 150 images to avoid OOM kills. This is on LXC containers with 4-6GB memory. Regardless of the amount of memory, the usage just steadily climbs until OOM unless you cap the batch size. Memory is never freed until the entire process completes.