Stability-AI / StableSwarmUI

StableSwarmUI, A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.
MIT License
4.59k stars 368 forks source link

Option to use Auto1111 Weighting in Comfy Backend #221

Open CodeAlexx opened 10 months ago

CodeAlexx commented 10 months ago

From fooocus github page "Fooocus uses A1111's reweighting algorithm so that results are better than ComfyUI if users directly copy prompts from Civitai. (Because if prompts are written in ComfyUI's reweighting, users are less likely to copy prompt texts as they prefer dragging files) To use embedding, you can use "(embedding:file_name:1.1)"

Enable this in the main screen would be killer.

mcmonkey4eva commented 10 months ago

Fwiw auto's weighting is very similar to comfy, the main difference iirc is one of them prefers the weight numbers to go higher than the other does, I forget which is which offhand. The syntax works the same, you can do (word:1.5) or you can highlight the word, then hold control and hit up/down arrow keys.

jnz86 commented 9 months ago

Fwiw auto's weighting is very similar to comfy, the main difference iirc is one of them prefers the weight numbers to go higher than the other does, I forget which is which offhand. The syntax works the same, you can do (word:1.5) or you can highlight the word, then hold control and hit up/down arrow keys.

You aren't saying anything OP doesn't seem to know.

The issue isn't that they're similar. It's that they aren't the same.

If you grab a prompt made in AUTO1111, it's a nice feature to paste that prompt and hit GO. It's OK if you need to select Use A1111 Weighting as a selection or toggle.

For those of us that switch between the two, this would be a valuable option.

CodeAlexx commented 9 months ago

One feature I miss in auto1111 is copy generation data. Yes, we can copy individual areas, positive prompt, negative prompt and so on. In Civitai on the bottom is copy generation data, press that it copies all , negative, positive prompts, steps, cfg , Seed and other details... go into auto1111 and paste in positive prompt then hit that arrow to the upper right and all those items are filled out. It's a pain to see between screens what the items are individually... especially the critical seed

mcmonkey4eva commented 9 months ago

if you have an image with metadata on it, just drag it into the center of swarm, it will load the image and its metadata, then click "Reuse Parameters"

CodeAlexx commented 9 months ago

That's trus but I don't want to save the image from civitai, go to my download folder and import . I would like copy , past then generate that image. Big difference

CaptainVarghoss commented 5 months ago

It would be nice to have a little toggle/dropdown on the main generate tab to switch from comfy to a1111 (or others) weighting. I haven't looked into the code or anything, but it seems like it might be a relatively simple addition since all that would be needed is the additional code in the swarm cliptextencode node. Something similar to the node here https://github.com/BlenderNeko/ComfyUI_ADV_CLIP_emb I tried using this node as is, but it lacks some of the other features the swarm node is using, so it didn't work as well as I'd hoped out of the box. There is probably a way to work around it with a fully custom workflow, but I'm not very familiar with comfyui and what nodes are available so I haven't gotten very far with that yet.