Skip to content

Commit 3f65607

Browse files
feat(app): update cogview4 t2i workflow w/ form
1 parent 1d4aa93 commit 3f65607

File tree

1 file changed

+90
-65
lines changed

1 file changed

+90
-65
lines changed

invokeai/app/services/workflow_records/default_workflows/CogView4_TextToImage.json

Lines changed: 90 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,91 @@
11
{
22
"name": "Text to Image - CogView4",
33
"author": "",
4-
"description": "Sample workflow for generating images from text using CogView4",
4+
"description": "Generate an image from a prompt with CogView4.",
55
"version": "",
66
"contact": "",
77
"tags": "CogView4, Text to Image",
88
"notes": "",
99
"exposedFields": [],
10-
"meta": {
11-
"category": "default",
12-
"version": "3.0.0"
13-
},
10+
"meta": { "category": "default", "version": "3.0.0" },
1411
"id": "default_0e405a8e-ab5e-4e6c-bd99-b59deabd5591",
1512
"form": {
1613
"elements": {
1714
"container-XSINSu999B": {
1815
"id": "container-XSINSu999B",
1916
"data": {
2017
"layout": "column",
21-
"children": []
18+
"children": [
19+
"heading-N0TXlsboP5",
20+
"text-PVw8AvXCTz",
21+
"divider-5wmCOm9mqG",
22+
"node-field-gPil4XSw8L",
23+
"node-field-T2oYYNrAzH",
24+
"node-field-SRj6Dn28lm"
25+
]
2226
},
2327
"type": "container"
28+
},
29+
"node-field-gPil4XSw8L": {
30+
"id": "node-field-gPil4XSw8L",
31+
"type": "node-field",
32+
"parentId": "container-XSINSu999B",
33+
"data": {
34+
"fieldIdentifier": {
35+
"nodeId": "a4569d8b-6a43-44b9-8919-4ceec6682904",
36+
"fieldName": "prompt"
37+
},
38+
"settings": {
39+
"type": "string-field-config",
40+
"component": "textarea"
41+
},
42+
"showDescription": false
43+
}
44+
},
45+
"node-field-T2oYYNrAzH": {
46+
"id": "node-field-T2oYYNrAzH",
47+
"type": "node-field",
48+
"parentId": "container-XSINSu999B",
49+
"data": {
50+
"fieldIdentifier": {
51+
"nodeId": "acb26944-1208-4016-9929-ab8dd0860573",
52+
"fieldName": "prompt"
53+
},
54+
"settings": {
55+
"type": "string-field-config",
56+
"component": "textarea"
57+
},
58+
"showDescription": false
59+
}
60+
},
61+
"node-field-SRj6Dn28lm": {
62+
"id": "node-field-SRj6Dn28lm",
63+
"type": "node-field",
64+
"parentId": "container-XSINSu999B",
65+
"data": {
66+
"fieldIdentifier": {
67+
"nodeId": "7890507c-d346-4d13-bcb4-bc6d4850b2e3",
68+
"fieldName": "model"
69+
},
70+
"showDescription": false
71+
}
72+
},
73+
"heading-N0TXlsboP5": {
74+
"id": "heading-N0TXlsboP5",
75+
"parentId": "container-XSINSu999B",
76+
"type": "heading",
77+
"data": { "content": "Text to Image - CogView4" }
78+
},
79+
"text-PVw8AvXCTz": {
80+
"id": "text-PVw8AvXCTz",
81+
"parentId": "container-XSINSu999B",
82+
"type": "text",
83+
"data": { "content": "Generate an image from a prompt with CogView4." }
84+
},
85+
"divider-5wmCOm9mqG": {
86+
"id": "divider-5wmCOm9mqG",
87+
"parentId": "container-XSINSu999B",
88+
"type": "divider"
2489
}
2590
},
2691
"rootElementId": "container-XSINSu999B"
@@ -46,10 +111,7 @@
46111
"isIntermediate": true,
47112
"useCache": true
48113
},
49-
"position": {
50-
"x": -52.193850056888095,
51-
"y": 282.4721422789611
52-
}
114+
"position": { "x": -52.193850056888095, "y": 282.4721422789611 }
53115
},
54116
{
55117
"id": "a4569d8b-6a43-44b9-8919-4ceec6682904",
@@ -64,7 +126,7 @@
64126
"inputs": {
65127
"prompt": {
66128
"name": "prompt",
67-
"label": "",
129+
"label": "Positive Prompt",
68130
"description": "",
69131
"value": "A whimsical stuffed gnome sits on a golden sandy beach, its plush fabric slightly textured and well-worn. The gnome has a round, cheerful face with a fluffy white beard, a bulbous nose, and a tall, slightly floppy red hat with a few decorative stitching details. It wears a tiny blue vest over a soft, earthy-toned tunic, and its stubby arms grasp a ripe yellow banana with a few brown speckles. The ocean waves gently roll onto the shore in the background, with turquoise water reflecting the warm glow of the late afternoon sun. A few scattered seashells and driftwood pieces are near the gnome, while a colorful beach umbrella and footprints in the sand hint at a lively beach scene. The sky is a soft pastel blend of pink, orange, and light blue, with wispy clouds stretching across the horizon.\n"
70132
},
@@ -78,10 +140,7 @@
78140
"isIntermediate": true,
79141
"useCache": true
80142
},
81-
"position": {
82-
"x": 328.9380683664592,
83-
"y": 305.11768986950995
84-
}
143+
"position": { "x": 328.9380683664592, "y": 305.11768986950995 }
85144
},
86145
{
87146
"id": "acb26944-1208-4016-9929-ab8dd0860573",
@@ -96,7 +155,7 @@
96155
"inputs": {
97156
"prompt": {
98157
"name": "prompt",
99-
"label": "",
158+
"label": "Negative Prompt",
100159
"description": "",
101160
"value": ""
102161
},
@@ -110,10 +169,7 @@
110169
"isIntermediate": true,
111170
"useCache": true
112171
},
113-
"position": {
114-
"x": 334.6799782744916,
115-
"y": 496.5882067536601
116-
}
172+
"position": { "x": 334.6799782744916, "y": 496.5882067536601 }
117173
},
118174
{
119175
"id": "cdd72700-463d-4e10-8d76-3e842e4c0b49",
@@ -132,61 +188,35 @@
132188
"description": "",
133189
"value": "auto"
134190
},
135-
"metadata": {
136-
"name": "metadata",
137-
"label": "",
138-
"description": ""
139-
},
140-
"latents": {
141-
"name": "latents",
142-
"label": "",
143-
"description": ""
144-
},
145-
"vae": {
146-
"name": "vae",
147-
"label": "",
148-
"description": ""
149-
}
191+
"metadata": { "name": "metadata", "label": "", "description": "" },
192+
"latents": { "name": "latents", "label": "", "description": "" },
193+
"vae": { "name": "vae", "label": "", "description": "" }
150194
},
151195
"isOpen": true,
152196
"isIntermediate": false,
153197
"useCache": true
154198
},
155-
"position": {
156-
"x": 1112.027247217991,
157-
"y": 294.1351498145327
158-
}
199+
"position": { "x": 1112.027247217991, "y": 294.1351498145327 }
159200
},
160201
{
161202
"id": "e75e2ced-284e-4135-81dc-cdf06c7a409d",
162203
"type": "invocation",
163204
"data": {
164205
"id": "e75e2ced-284e-4135-81dc-cdf06c7a409d",
165-
"type": "cogview4_denoise",
166206
"version": "1.0.0",
207+
"nodePack": "invokeai",
167208
"label": "",
168209
"notes": "",
169-
"isOpen": true,
170-
"isIntermediate": true,
171-
"useCache": true,
172-
"nodePack": "invokeai",
210+
"type": "cogview4_denoise",
173211
"inputs": {
174212
"board": {
175213
"name": "board",
176214
"label": "",
177215
"description": "",
178216
"value": "auto"
179217
},
180-
"metadata": {
181-
"name": "metadata",
182-
"label": "",
183-
"description": ""
184-
},
185-
"latents": {
186-
"name": "latents",
187-
"label": "",
188-
"description": ""
189-
},
218+
"metadata": { "name": "metadata", "label": "", "description": "" },
219+
"latents": { "name": "latents", "label": "", "description": "" },
190220
"denoise_mask": {
191221
"name": "denoise_mask",
192222
"label": "",
@@ -243,18 +273,13 @@
243273
"description": "",
244274
"value": 30
245275
},
246-
"seed": {
247-
"name": "seed",
248-
"label": "",
249-
"description": "",
250-
"value": 0
251-
}
252-
}
276+
"seed": { "name": "seed", "label": "", "description": "", "value": 0 }
277+
},
278+
"isOpen": true,
279+
"isIntermediate": true,
280+
"useCache": false
253281
},
254-
"position": {
255-
"x": 720.8830004638692,
256-
"y": 332.66609681908415
257-
}
282+
"position": { "x": 720.8830004638692, "y": 332.66609681908415 }
258283
}
259284
],
260285
"edges": [

0 commit comments

Comments
 (0)