comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
55.4k stars 5.85k forks source link

BSOD during VAEDecode [DirectML] #1824

Open mastermach50 opened 1 year ago

mastermach50 commented 1 year ago

System Specifications

OS: Windows 11
CPU: AMD Ryzen 7 5800HS with Radeon Graphics
GPU: Integrated
Memory: 16GB

I am trying to run SD using DirectML

The generation does happen properly and I can see the live preview but during VAEDecode the system blue screens with the stopcode VIDEO_MEMORY_MANAGEMENT_INTERNAL.

RarogCmex commented 1 year ago

Check your gpu

mastermach50 commented 1 year ago

Check your gpu

I am running an amd apu so the GPU is integrated

I had no trouble running SD using directml using Automatic1111's directml fork

mastermach50 commented 1 year ago

This issue happens even if i am doing a minuscule generation like 128x128

But this only happens when I am using directml, it is non-existant when using with cpu

quixot1c commented 1 year ago

BSOD's are usually related to hardware/driver issues and the message VIDEO_MEMORY_MANAGEMENT_INTERNAL points to a memory issue. Maybe update your drivers or the directml package. Could even be a faulty memory stick.

mastermach50 commented 1 year ago

My system is a laptop and i have been able to run SD using direct-ml (A1111 DirectML) before so that might not be the case