Skip to content

Commit

Permalink
Implement SD15 Support (#44)
Browse files Browse the repository at this point in the history
* Add SD15 decoder support

* Support fg generation

* Refactor

* Rename category

* Add joint support

* Standalone joint node

* Fix cond mark

* CondJoint

* Patch ComfyUI

* Add split decoder

* refactor existing nodes

* Update examples
  • Loading branch information
huchenlei authored Mar 9, 2024
1 parent 2767a5b commit dc48c4b
Show file tree
Hide file tree
Showing 13 changed files with 3,192 additions and 640 deletions.
154 changes: 77 additions & 77 deletions examples/layer_diffusion_cond_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,81 +258,6 @@
"Node name for S&R": "PreviewImage"
}
},
{
"id": 28,
"type": "LayeredDiffusionCondApply",
"pos": [
465,
-26
],
"size": {
"0": 315,
"1": 142
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 38
},
{
"name": "cond",
"type": "CONDITIONING",
"link": 39
},
{
"name": "uncond",
"type": "CONDITIONING",
"link": 40
},
{
"name": "latent",
"type": "LATENT",
"link": 47
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
41
],
"shape": 3,
"slot_index": 0
},
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
46
],
"shape": 3,
"slot_index": 1
},
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
45
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "LayeredDiffusionCondApply"
},
"widgets_values": [
"Background",
1
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 14,
"type": "VAEDecode",
Expand Down Expand Up @@ -425,7 +350,7 @@
"Node name for S&R": "KSampler"
},
"widgets_values": [
512744791563487,
100676796092754,
"randomize",
20,
8,
Expand Down Expand Up @@ -472,7 +397,7 @@
"type": "ImageResize+",
"pos": [
-146,
-19
-16
],
"size": {
"0": 315,
Expand Down Expand Up @@ -521,6 +446,81 @@
"nearest",
false
]
},
{
"id": 28,
"type": "LayeredDiffusionCondApply",
"pos": [
465,
-26
],
"size": {
"0": 315,
"1": 142
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 38
},
{
"name": "cond",
"type": "CONDITIONING",
"link": 39
},
{
"name": "uncond",
"type": "CONDITIONING",
"link": 40
},
{
"name": "latent",
"type": "LATENT",
"link": 47
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
41
],
"shape": 3,
"slot_index": 0
},
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
46
],
"shape": 3,
"slot_index": 1
},
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
45
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "LayeredDiffusionCondApply"
},
"widgets_values": [
"SDXL, Background",
1
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
Expand Down
Loading

0 comments on commit dc48c4b

Please sign in to comment.