Good day. I come to report a potential bug in AMD AMUSE v2.1.11
System info:
- Windows 11 Home, version 23H2
- Graphics card: Radeon RX 7800 XT
- Graphics driver: Adrenalin Edition 24.9.1
Steps to reproduce:
- Load model: Juggernaut XL
- Set resolution: 1280 x 1280, steps=100
- Generate one image by clicking "Generate" button
- While you wait for image generation, open Windows Task Manager, go to GPU tab
- Observe VRAM usage over time
- Video memory usage is around 9 GB
- At the moment when image generation process is finished, the memory usage spikes up to 20 GB -> 16 dedicated + 4 shared
- This is not good because we have now filled all the available memory, and it stays occupied filled, despite the image generation process being already finished
- Generate more images with the same settings
- The image generation process will get slower and slower over time, eventually crashing or freezing
- Use batch image generation on the "Automation" tab -> the same problem will happen.
- The first image is always good, but next images will use too much VRAM
It seems like VRAM does not get released at some point where it probably should be released.
9GB should be enough because it is always enough for the first image, but the consequent images always struggle.
The workaround is to unload the model every time manually by clicking the red "x" button below Model Selector