ArtVentureX / sd-webui-agent-scheduler

634 stars 67 forks source link

Flickering and Noisy Live Preview Images with Agent Scheduler #80

Open MDMAchine opened 1 year ago

MDMAchine commented 1 year ago

Issue Description

When utilizing the agent scheduler, I have observed erratic behavior in the live preview images:

a) Flickering: The live preview images flicker intermittently during the diffusion process. b) Random Noise: Random noise patterns appear in the live preview images, disrupting their visual quality. c) General Odd Behavior: The live preview images display unexpected behavior, which may include artifacts, unusual color shifts, or distorted shapes.

Although these issues affect the live preview images, the final output images seem to be unaffected. It happens while its processing and/or if something is queued.

I am using --medvram

Version Platform Description

Browser: Brave (MacOS) app: "SD.next", updated: "2023-07-15", hash: "a7f5e75a", torch: "2.0.1+cu118 Autocast half", device: "NVIDIA GeForce RTX 3060 Ti (1) (compute_37) (8, 6)", cuda: "11.8", cudnn: 8700, driver: "531.79" optimizations: "medvram" xformers: "0.0.20", diffusers: "0.18.2", transformers: "4.30.2" cpu: "AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD", system: "Windows", release: "Windows-10-10.0.22621-SP0", python: "3.10.6" crossattention: "xformers", backend: "cuda", pipeline: "original"

vladmandic commented 1 year ago

Issue is likely as agent scheduler runs preview requests in parallel to standard preview which leads to unexpected results. Agent scheduler should only run preview requests if tab is actually selected as active.