this post was submitted on 02 Nov 2023
2 points (75.0% liked)

Stable Diffusion

4305 readers
10 users here now

Discuss matters related to our favourite AI Art generation technology

Also see

Other communities

founded 1 year ago
MODERATORS
 

I've used ComfyUI for a few days now and overall it seems like the quality of the generated images are a bit lower than what I can do in AUTOMATIC1111. Sometimes the difference is subtle (maybe just selection bias) and sometimes the difference is pretty clear. I've done my best to get the settings and inputs to be equal in both tools. Side question: is it normal for the same seed to generate different outputs in different tools?

I'm using medvram on A1111 and I thought I read that's the default for Comfy as well. Not using xformers in either case. No HiResFix. No face restoration.

Only definite difference I've seen is that Comfy uses "pytorch cross attention" and A1111 uses "Automatic" cross attention optimization (didn't see a pytorch option).

Example of what I'm seeing (NSFW - ladies in bikinis): https://imgur.com/a/LzAzKfV

Update: IMGUR removed my generated images so I'll just attach them here. First one is Comfy and second one is A1111.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

I found this post on the Comfy GitHub about weights and such: https://github.com/comfyanonymous/ComfyUI/discussions/521

So it seems like I need to use AdvancedClipEncode to keep the same behavior as A1111. Will try later today.

[–] [email protected] 1 points 1 year ago

After using this module and "CLIP Set Last Layer" (i.e. Skip CLIP) I was able to generate an image nearly identical to A1111. I think "proper" interpretation of the prompts has helped immensely (since most ppl share their A1111 prompts). Sad to say though there are a few prompts I use that just look better with the GPU seed and AFAIK I can't turn that on for Comfy.

I'm thinking one day I'll do everything in Comfy, writing nodes looks really fun, but for now I'll probably straddle the two.

[–] [email protected] 1 points 1 year ago (1 children)

Regarding different outputs for the same seed: have You changed seed source to CPU in A1111? The noise You get that way is consistent across different hardware vendors and different from the GPU-sourced one.

I have used A1111 just now to check and got very simmilar results to ComfyUI that way.

[–] [email protected] 2 points 1 year ago (1 children)

I tried setting A1111 to CPU/GPU/NV generator sources and none were close to the Comfy outputs. You have a pretty vanilla A1111 install? Maybe I've tweaked too many things that I've forgotten about.

I am also using Python 3.11 which isn't officially supported by A1111 so that could cause issues maybe? Never saw any issues with using the newer version and I'm using the recommended library versions.

[–] [email protected] 1 points 1 year ago

Pretty much vanilla, only --xformers --medvram arguments and CPU seed. In that case, someone with more A1111 experience should weigh in, mine is limited, I mainly use comfy nowadays and probably am not up-to-date with development.