Skip to content

Commit 5b0317f

Browse files
committed
feat(flows): new Restore Old Photo workflow
Signed-off-by: bigcat88 <bigcat88@icloud.com>
1 parent c314234 commit 5b0317f

File tree

1 file changed

+341
-0
lines changed

1 file changed

+341
-0
lines changed

flows/restore_old_photo.json

Lines changed: 341 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,341 @@
1+
{
2+
"6": {
3+
"inputs": {
4+
"text": [
5+
"227",
6+
0
7+
],
8+
"clip": [
9+
"38",
10+
0
11+
]
12+
},
13+
"class_type": "CLIPTextEncode",
14+
"_meta": {
15+
"title": "CLIP Text Encode (Positive Prompt)"
16+
}
17+
},
18+
"8": {
19+
"inputs": {
20+
"samples": [
21+
"31",
22+
0
23+
],
24+
"vae": [
25+
"39",
26+
0
27+
]
28+
},
29+
"class_type": "VAEDecode",
30+
"_meta": {
31+
"title": "VAE Decode"
32+
}
33+
},
34+
"31": {
35+
"inputs": {
36+
"seed": 232347503409083,
37+
"steps": 28,
38+
"cfg": 1,
39+
"sampler_name": "euler",
40+
"scheduler": "simple",
41+
"denoise": 1,
42+
"model": [
43+
"37",
44+
0
45+
],
46+
"positive": [
47+
"35",
48+
0
49+
],
50+
"negative": [
51+
"135",
52+
0
53+
],
54+
"latent_image": [
55+
"124",
56+
0
57+
]
58+
},
59+
"class_type": "KSampler",
60+
"_meta": {
61+
"title": "KSampler"
62+
}
63+
},
64+
"35": {
65+
"inputs": {
66+
"guidance": 2.5,
67+
"conditioning": [
68+
"177",
69+
0
70+
]
71+
},
72+
"class_type": "FluxGuidance",
73+
"_meta": {
74+
"title": "FluxGuidance"
75+
}
76+
},
77+
"37": {
78+
"inputs": {
79+
"unet_name": "flux1-kontext-dev.safetensors",
80+
"weight_dtype": [
81+
"241",
82+
0
83+
]
84+
},
85+
"class_type": "UNETLoader",
86+
"_meta": {
87+
"title": "Load Diffusion Model"
88+
}
89+
},
90+
"38": {
91+
"inputs": {
92+
"clip_name1": "clip_l.safetensors",
93+
"clip_name2": "t5xxl_fp8_e4m3fn.safetensors",
94+
"type": "flux",
95+
"device": "default"
96+
},
97+
"class_type": "DualCLIPLoader",
98+
"_meta": {
99+
"title": "DualCLIPLoader"
100+
}
101+
},
102+
"39": {
103+
"inputs": {
104+
"vae_name": "ae.safetensors"
105+
},
106+
"class_type": "VAELoader",
107+
"_meta": {
108+
"title": "Load VAE"
109+
}
110+
},
111+
"124": {
112+
"inputs": {
113+
"pixels": [
114+
"193",
115+
0
116+
],
117+
"vae": [
118+
"39",
119+
0
120+
]
121+
},
122+
"class_type": "VAEEncode",
123+
"_meta": {
124+
"title": "VAE Encode"
125+
}
126+
},
127+
"135": {
128+
"inputs": {
129+
"conditioning": [
130+
"6",
131+
0
132+
]
133+
},
134+
"class_type": "ConditioningZeroOut",
135+
"_meta": {
136+
"title": "ConditioningZeroOut"
137+
}
138+
},
139+
"136": {
140+
"inputs": {
141+
"filename_prefix": "ComfyUI",
142+
"images": [
143+
"245",
144+
0
145+
]
146+
},
147+
"class_type": "SaveImage",
148+
"_meta": {
149+
"title": "Save Image"
150+
}
151+
},
152+
"177": {
153+
"inputs": {
154+
"conditioning": [
155+
"6",
156+
0
157+
],
158+
"latent": [
159+
"124",
160+
0
161+
]
162+
},
163+
"class_type": "ReferenceLatent",
164+
"_meta": {
165+
"title": "ReferenceLatent"
166+
}
167+
},
168+
"193": {
169+
"inputs": {
170+
"upscale_method": "lanczos",
171+
"megapixels": 1,
172+
"image": [
173+
"243",
174+
0
175+
]
176+
},
177+
"class_type": "ImageScaleToTotalPixels",
178+
"_meta": {
179+
"title": "Scale Image to Total Pixels"
180+
}
181+
},
182+
"227": {
183+
"inputs": {
184+
"string_a": "restore and colorize this photo, keep the appearance of the characters unchanged to the greatest extent, eliminate cracks, enhance clarity, achieve ultra-high-definition quality, reversal film photography, hdr,",
185+
"string_b": [
186+
"248",
187+
0
188+
],
189+
"delimiter": ""
190+
},
191+
"class_type": "StringConcatenate",
192+
"_meta": {
193+
"title": "Concatenate"
194+
}
195+
},
196+
"239": {
197+
"inputs": {
198+
"prompt": "Generate a flux model drawing prompt for this image, within 130 words. Only describe the content of the image; do not describe the artistic style such as photo, painting, anime, etc. Describe the scene in order from left to right, top to bottom, and from foreground to background, clearly indicating the position of each subject. Do not describe any human features such as gender, skin color, age, or hairstyle. Only describe clothing and reasonably infer the colors of garments based on context. For example, say \"the figure on the left is wearing a red dress\" or \"the figure on the right is in a blue suit with a white shirt.\" Ignore any aging effects in the photo such as speckles or ripples.\n\nOutput only the generated prompt and nothing else.",
199+
"safety_settings": "BLOCK_NONE",
200+
"response_type": "text",
201+
"model": "gemini-2.5-flash",
202+
"api_key": "",
203+
"proxy": "",
204+
"system_instruction": "",
205+
"error_fallback_value": "",
206+
"seed": 502120398,
207+
"temperature": -0.05,
208+
"num_predict": 0,
209+
"image_1": [
210+
"243",
211+
0
212+
]
213+
},
214+
"class_type": "Ask_Gemini",
215+
"_meta": {
216+
"title": "Ask Gemini"
217+
}
218+
},
219+
"241": {
220+
"inputs": {
221+
"default_value": "fp8_e4m3fn",
222+
"possible_values": "[\"default\", \"fp8_e4m3fn\", \"fp8_e4m3fn_fast\", \"fp8_e5m2\"]",
223+
"display_name": "Diffusion precision",
224+
"optional": true,
225+
"advanced": true,
226+
"order": 30,
227+
"custom_id": "diffusion_precision",
228+
"hidden": false
229+
},
230+
"class_type": "VixUiList",
231+
"_meta": {
232+
"title": "VixUI-List"
233+
}
234+
},
235+
"243": {
236+
"inputs": {
237+
"image": ""
238+
},
239+
"class_type": "LoadImage",
240+
"_meta": {
241+
"title": "input;Old photo;order=1;custom_id=src_image"
242+
}
243+
},
244+
"244": {
245+
"inputs": {
246+
"name": "restore_old_photo",
247+
"display_name": "Restore Old Photo",
248+
"description": "Restore Old Damaged Photo",
249+
"author": "Datou",
250+
"homepage": "https://openart.ai/workflows/datou/restore-old-and-damaged-photosflux-kontext/yXttxLAnquPMZ9feVI7g",
251+
"documentation": "",
252+
"license": "",
253+
"tags": "[\"restore\"]",
254+
"version": "1.0.0",
255+
"requires": "[\"Ollama: gemma3:12b-it-qat\"]",
256+
"is_seed_supported": true,
257+
"is_count_supported": true,
258+
"is_translations_supported": false,
259+
"is_macos_supported": true,
260+
"required_memory_gb": 12,
261+
"hidden": false,
262+
"remote_vae": true
263+
},
264+
"class_type": "VixUiWorkflowMetadata",
265+
"_meta": {
266+
"title": "VixUI-WorkflowMetadata"
267+
}
268+
},
269+
"245": {
270+
"inputs": {
271+
"state": false,
272+
"input_off_state": [
273+
"8",
274+
0
275+
],
276+
"input_on_state": [
277+
"246",
278+
0
279+
]
280+
},
281+
"class_type": "VixCheckboxLogic",
282+
"_meta": {
283+
"title": "remote_vae"
284+
}
285+
},
286+
"246": {
287+
"inputs": {
288+
"vae_type": "Flux",
289+
"samples": [
290+
"31",
291+
0
292+
]
293+
},
294+
"class_type": "RemoteVAEDecode",
295+
"_meta": {
296+
"title": "VAE Decode (Remote)"
297+
}
298+
},
299+
"247": {
300+
"inputs": {
301+
"query": "Generate a flux model drawing prompt for this image, within 130 words. Only describe the content of the image; do not describe the artistic style such as photo, painting, anime, etc. Describe the scene in order from left to right, top to bottom, and from foreground to background, clearly indicating the position of each subject. Do not describe any human features such as gender, skin color, age, or hairstyle. Only describe clothing and reasonably infer the colors of garments based on context. For example, say \"the figure on the left is wearing a red dress\" or \"the figure on the right is in a blue suit with a white shirt.\" Ignore any aging effects in the photo such as speckles or ripples.\n\nOutput only the generated prompt and nothing else.",
302+
"debug": "enable",
303+
"url": "http://127.0.0.1:11434",
304+
"model": "gemma3:12b-it-qat",
305+
"keep_alive": 0,
306+
"format": "text",
307+
"seed": 1,
308+
"images": [
309+
"243",
310+
0
311+
]
312+
},
313+
"class_type": "OllamaVision",
314+
"_meta": {
315+
"title": "Ollama Vision"
316+
}
317+
},
318+
"248": {
319+
"inputs": {
320+
"state": true,
321+
"display_name": "Use Gemini instead of Ollama",
322+
"optional": true,
323+
"advanced": true,
324+
"order": 95,
325+
"custom_id": "vision_provider",
326+
"hidden": false,
327+
"input_off_state": [
328+
"247",
329+
0
330+
],
331+
"input_on_state": [
332+
"239",
333+
0
334+
]
335+
},
336+
"class_type": "VixUiCheckboxLogic",
337+
"_meta": {
338+
"title": "VixUI-CheckboxLogic"
339+
}
340+
}
341+
}

0 commit comments

Comments
 (0)