Files
Emre b6d193f19f Enhance README and example workflow for DSD model
- Added multiple image resizing options to the README, detailing new parameters for the DSD Image Generator.
- Updated example workflow JSON to include the new `DSDResizeSelector` node, enhancing image resizing capabilities.
- Removed outdated screenshot files and replaced them with a new workflow image for better clarity.

These updates improve documentation and provide users with clearer guidance on utilizing the new features.
2025-03-14 01:17:15 +03:00

487 lines
8.7 KiB
JSON

{
"last_node_id": 39,
"last_link_id": 117,
"nodes": [
{
"id": 18,
"type": "PreviewImage",
"pos": [
1214.10986328125,
-74.78528594970703
],
"size": [
406.026123046875,
409.0712585449219
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 115
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 3,
"type": "LoadImage",
"pos": [
-119.63543701171875,
-71.78013610839844
],
"size": [
366.44219970703125,
419.337890625
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"shape": 3,
"links": [
4,
109
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"shape": 3,
"links": []
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"DALL·E 2024-08-18 18.34.08 - A 2D anime-style character concept art in the style of Porco Rosso. The character is a young, male airplane mechanic in his early 20s, with messy brow.webp",
"image"
]
},
{
"id": 19,
"type": "PreviewImage",
"pos": [
1271.379638671875,
431.7550964355469
],
"size": [
210,
246
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 113
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 5,
"type": "DSDGeminiPromptEnhancer",
"pos": [
299.41937255859375,
386.8332824707031
],
"size": [
334.03948974609375,
137.88925170898438
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 4
},
{
"name": "prompt",
"type": "STRING",
"widget": {
"name": "prompt"
},
"link": 5
}
],
"outputs": [
{
"name": "enhanced_prompt",
"type": "STRING",
"shape": 3,
"links": [
110
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "dsd",
"ver": "4642def54ab46095a128cc2f8d37abde99a0f099",
"Node name for S&R": "DSDGeminiPromptEnhancer",
"aux_id": "irreveloper/ComfyUI-DSD-Node"
},
"widgets_values": [
"Side view of anime character.",
""
]
},
{
"id": 39,
"type": "DSDResizeSelector",
"pos": [
314.8365478515625,
171.76687622070312
],
"size": [
315,
154
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "resize_params",
"type": "RESIZE_PARAMS",
"links": [
117
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "dsd",
"ver": "48d020ac58d05c8a14223dac597a645ee908684a",
"Node name for S&R": "DSDResizeSelector"
},
"widgets_values": [
"resize_and_center_crop",
"LANCZOS",
0,
0,
0
]
},
{
"id": 38,
"type": "DSDModelDownloader",
"pos": [
328.3520812988281,
-165.09207153320312
],
"size": [
315,
266
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "dsd_model",
"type": "DSD_MODEL",
"links": [
116
]
},
{
"name": "model_path",
"type": "STRING",
"links": null
},
{
"name": "lora_path",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "dsd",
"ver": "4642def54ab46095a128cc2f8d37abde99a0f099",
"Node name for S&R": "DSDModelDownloader",
"aux_id": "irreveloper/ComfyUI-DSD-Node"
},
"widgets_values": [
"primecai/dsd_model",
false,
"cuda",
"bfloat16",
true,
false,
false,
""
]
},
{
"id": 4,
"type": "PrimitiveNode",
"pos": [
-117.78815460205078,
407.2402648925781
],
"size": [
315,
130
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"shape": 3,
"links": [
5
],
"slot_index": 0
}
],
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"Side view of anime character."
]
},
{
"id": 11,
"type": "PrimitiveNode",
"pos": [
-106.84088897705078,
607.5902099609375
],
"size": [
301.3577880859375,
88
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
111
]
}
],
"title": "negative_prompt",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"text, watermark, blurry"
]
},
{
"id": 37,
"type": "DSDImageGenerator",
"pos": [
721.5396728515625,
86.6509017944336
],
"size": [
400,
398
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "dsd_model",
"type": "DSD_MODEL",
"link": 116
},
{
"name": "image",
"type": "IMAGE",
"link": 109
},
{
"name": "prompt",
"type": "STRING",
"widget": {
"name": "prompt"
},
"link": 110
},
{
"name": "negative_prompt",
"type": "STRING",
"widget": {
"name": "negative_prompt"
},
"link": 111
},
{
"name": "resize_params",
"type": "RESIZE_PARAMS",
"shape": 7,
"link": 117
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
115
]
},
{
"name": "reference_image",
"type": "IMAGE",
"links": [
113
]
},
{
"name": "seed",
"type": "INT",
"links": []
}
],
"properties": {
"cnr_id": "dsd",
"ver": "4642def54ab46095a128cc2f8d37abde99a0f099",
"Node name for S&R": "DSDImageGenerator",
"aux_id": "irreveloper/ComfyUI-DSD-Node"
},
"widgets_values": [
"",
"text, watermark, blurry",
3,
"fixed",
3.5,
1,
1,
28,
1024,
512,
true
]
}
],
"links": [
[
4,
3,
0,
5,
0,
"IMAGE"
],
[
5,
4,
0,
5,
1,
"STRING"
],
[
109,
3,
0,
37,
1,
"IMAGE"
],
[
110,
5,
0,
37,
2,
"STRING"
],
[
111,
11,
0,
37,
3,
"STRING"
],
[
113,
37,
1,
19,
0,
"IMAGE"
],
[
115,
37,
0,
18,
0,
"IMAGE"
],
[
116,
38,
0,
37,
0,
"DSD_MODEL"
],
[
117,
39,
0,
37,
4,
"RESIZE_PARAMS"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8768324088719838,
"offset": [
773.2185529985686,
450.555653889974
]
}
},
"version": 0.4
}