Update README.md

This commit is contained in:
Extraltodeus
2024-05-30 01:02:30 +02:00
committed by GitHub
parent a08d4872cc
commit ea32987c13
+26 -59
View File
@@ -7,65 +7,6 @@ No more burns and 160% faster gens with the warp drive node.
Now includes custom attention modifiers and interesting presets as well as temperature scaling.
# Upcoming update (so not yet but soon) (28.05.24):
- It's a preview, I'm scratching my head on this right now but will definitely put the temperature nodes in their own repository after figuring out (or at least finding an acceptable approximation) what's is the best relation in between... the scale of the image and the temperature!
- Next update will require pytorch 2.3, now works fully with ComfyUI (2-3 weeks ago it gave me errors, now it works for sure)
- [WOULD YOU LOOK AT THAT!](https://youtu.be/jSCxzsS6Vu0?si=p8mHn7vuxiY6lbG2&t=14) This is BASE SD 1.5 sampling natively at 512*1024!
-
- ![combined_pair_1](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/50b2ac43-5087-4464-90f4-9aae27f476b7)![combined_pair_3](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/2de60d28-db11-4bba-b3b3-b5dd97f564f1)
![combined_pair_2](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/3def57a8-c000-4148-a9d5-a92c0a70b388)
- You can also sample the tiniest images, isn't it a cute little bottle?    ![00272UI_00001_](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/91ef2887-19a0-411d-8bdf-61cbbba5e35e)
# Update (22.05.24):
-   T E M P E R A T U R E   S E T T I N G S  for the CLIP and the UNET!
- Added two experimental temperature settings nodes for SD 1.5 and SDXL # Quick edit on the 28.05.24, I've made interesting discoveries with this and will probably remove these nodes to put them into a different repository.
- They are standalone and compatible with my other nodes. It is better to connect them before any other auto-cfg node.
- Here is how you can plug them: ![image](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/0d01d55f-a2ff-4926-bed8-1f790463b4cf)
- If you want to set different values for different layers and different attentions you can simply chain them.
- Added also a CLIP temperature patch.
- ![image](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/8c8c930e-8079-41f5-9996-14779ef1f7dd)
- THE CLIP PATCH IGNORES THE CONNECTION and is linked to the model in memory. Set the temperature at 1 to set it to normal or use a second loader / reload the model.
- Interesting overall discoveries:
- At least with SDXL, bypassing the input layer 8 while generating the uncond makes the images cleaner. Make it return the query rather than the result of the attention function and the uncond stops messing around with the composition. It does however raises the brightness if an anti-burn is not used (but you're in luck since that was the initial goal of this repository). This side effect is absolutely unnoticeable with the auto-cfg set on "hard".
- Scaling the attention scores with a temperature on the CLIP model is easy to implement and beneficial.
## Example of these two discoveries:
![11737UI_00001_](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/e6d763b9-548b-4b3e-b992-e9e37fc91c6d)
## CLIP Temperature with SD 1.5:
### 0.77
![077](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/c0ca8f89-096d-4edb-8b2a-b0958f51e5ac)
### 0.88
![088](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/1b9cf7b0-e0f7-4bc5-a329-3cdf5b2a91ca)
### 1.00
![100](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/5d00d833-406e-4bad-bf07-a6bbd281ea20)
### 1.25
![125](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/acc29a43-322a-42f1-b9cc-a07b8e1c366d)
### 1.42
![142](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/60f2622e-6a99-434a-b887-d531b71370e7)
## SDXL Unet temperature variation (interpolated with Flowframes)
https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/4cbdc670-5e6c-435c-9f39-66f910dfed13
# Usage:
![77889aa6-a2f6-48bf-8cde-17c9cbfda5fa](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/c725a06c-8966-43de-ab1c-569e2ff5b151)
@@ -186,6 +127,32 @@ Sample and Distribution Quality in Diffusion Models](https://arxiv.org/pdf/2404.
- Experiment what each layer really do by using what is basically a bruteforcing node! (the Attention modifiers tester node)
- This is how you do a [Perturbed Attention Guidance](https://github.com/Extraltodeus/temp/blob/main/PAG.png) for example
# Upcoming update (so not yet but soon) (28.05.24):
- It's a preview, I'm scratching my head on this right now but will definitely put the temperature nodes in their own repository after figuring out (or at least finding an acceptable approximation) what's is the best relation in between... the scale of the image and the temperature!
- Next update will require pytorch 2.3, now works fully with ComfyUI (2-3 weeks ago it gave me errors, now it works for sure)
- [WOULD YOU LOOK AT THAT!](https://youtu.be/jSCxzsS6Vu0?si=p8mHn7vuxiY6lbG2&t=14) This is BASE SD 1.5 sampling natively at 512*1024!
-
- ![combined_pair_1](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/50b2ac43-5087-4464-90f4-9aae27f476b7)![combined_pair_3](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/2de60d28-db11-4bba-b3b3-b5dd97f564f1)
![combined_pair_2](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/3def57a8-c000-4148-a9d5-a92c0a70b388)
- You can also sample the tiniest images, isn't it a cute little bottle?    ![00272UI_00001_](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/91ef2887-19a0-411d-8bdf-61cbbba5e35e)
# Update (22.05.24):
-   T E M P E R A T U R E   S E T T I N G S  for the CLIP and the UNET!
- Added two experimental temperature settings nodes for SD 1.5 and SDXL # Quick edit on the 28.05.24, I've made interesting discoveries with this and will probably remove these nodes to put them into a different repository.
- They are standalone and compatible with my other nodes. It is better to connect them before any other auto-cfg node.
- Here is how you can plug them: ![image](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/0d01d55f-a2ff-4926-bed8-1f790463b4cf)
- If you want to set different values for different layers and different attentions you can simply chain them.
- Added also a CLIP temperature patch.
- ![image](https://github.com/Extraltodeus/ComfyUI-AutomaticCFG/assets/15731540/8c8c930e-8079-41f5-9996-14779ef1f7dd)
- THE CLIP PATCH IGNORES THE CONNECTION and is linked to the model in memory. Set the temperature at 1 to set it to normal or use a second loader / reload the model.
- Interesting overall discoveries:
- At least with SDXL, bypassing the input layer 8 while generating the uncond makes the images cleaner. Make it return the query rather than the result of the attention function and the uncond stops messing around with the composition. It does however raises the brightness if an anti-burn is not used (but you're in luck since that was the initial goal of this repository). This side effect is absolutely unnoticeable with the auto-cfg set on "hard".
- Scaling the attention scores with a temperature on the CLIP model is easy to implement and beneficial.
<div align="center">
### 😊 [Gallery of generated images and workflows with this latest update HERE!](https://www.patreon.com/posts/104245818) 😊