Comfy-Org / Comfy-Org/ComfyUI

Self-Attention Guidance seems to cause memory leak or break down image inference

Open
#7,196 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Expected Behavior

Makes image.

### Actual Behavior

Doesnt make image, black screen, image disolves during inference into blue and yellow noise and next frame is black.

### Steps to Reproduce

Simple setup, some PONY checkpoint, clip skip -2, some simple prompt, SAG node at 0.25 and 1.00, typical denoise via DPM++ 2M and Karras around 30 steps.

Current version of ComfyUI - 0.3.26 doesnt say anything in console, but 0.3.24 did mention something about SDXL memory leak or something due model circle referenced something (didnt save it).

SAG node is always bit problematic to say at least, but apart combination with certain nodes that modifies similar stuff, it worked.

### Debug Logs

```powershell
nothing there
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.