Open lbeltrame opened 4 months ago
i cannot reproduce this
Are you trying with or without queues? I run with queues enabled, FTR. I've seen this in two different installations (one local, one on Paperspace). The fact that it depends on the number of images generated makes me think it's more of a client-side problem, although I have no idea on how to debug it.
tried with and without queues.
I think that's something that gets stuck, because if I cut off the connection for a second, the problem magically solves itself. I'll keep this issue open for a bit but if no one else can reproduce it I'll close it and reopen only if I find a clean way to reproduce it.
I have the same / a similar issue. I don't even need to increase the batch count. If I do a normal text generation (in the Control tab) at 1024x1024, the process gets stuck at "control 100% finishing". If I do the same but as 512x512, no problem. In both cases the image is actually saved, so it's only the frontend that gets stuck.
By the way I think it is related to what I reported in #2838 before. Back then I thought it was the act of using ControlNet, but it's actually just using the Control tab. Which I also only now noticed when trying out Modern UI, since there is no more txt2img.
What I am wondering, what is the difference of using txt2img generation via the txt2img tab compared to via the Control tab? I previously thought that Control just uses the same workflow as txt2img under the hood, if only using a text prompt?
that's a very different issue.
Issue Description
I thought this was an issue of the new Modern UI, but it is instead an issue in Control.
When doing the txt2img Control workflow with larger batches (2 doesn't seem to trigger it reliably, 5 does), the frontend and the backend will go out of sync at the end, causing a Finishing text being displayed forever: further generations are not possible. This at least occurs with Firefox, the only browser I can test with. A page reload is required to allow further generations.
This was hardly noticeable in the old UI, because the Generate buttons were separate, but it is very evident in Modern UI where there's a single Generate button for everything so all workflows are impacted. In retrospect, I remember this occurring in the past, but I never figured how to trigger it properly until the Modern UI was introdued.
I haven't been able to pinpoint the actual cause. I checked, after being asked by Vlad, the difference in time between the end of generation, and end processing (paths removed):
So there's roughly 50 seconds (probably less) between the end of the generation and the actual end of the run. There are no other information in the server log, and as well in the JS console.
This does not occur with the regular txt2img workflow (but it works in a completely different way, so it's kind of expected).
Version Platform Description
11:45:47-084150 INFO Starting SD.Next
11:45:47-087137 INFO Logger: file="/home/lb/Coding/automatic/sdnext.log" level=INFO size=22296660 mode=append
11:45:47-088236 INFO Python 3.11.9 on Linux
11:45:47-158504 INFO Version: app=sd.next updated=2024-04-26 hash=cccbb4b3 branch=dev url=https://github.com/vladmandic/automatic/tree/dev
11:45:47-526947 INFO Updating main repository
11:45:48-141684 INFO Upgraded to version: cccbb4b3 Fri Apr 26 21:32:34 2024 -0400
11:45:48-154257 INFO Platform: arch=x86_64 cpu=x86_64 system=Linux release=6.8.7-1-default python=3.11.9
Relevant log output
No response
Backend
Diffusers
Branch
Dev
Model
SD-XL
Acknowledgements