Skip to content

Commit 535b305

Browse files
committed
test: simplified workflow & use it for both tests
1 parent d421f84 commit 535b305

File tree

2 files changed

+92
-39
lines changed

2 files changed

+92
-39
lines changed

.runpod/tests.json

Lines changed: 89 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,119 @@
33
{
44
"name": "basic_test",
55
"input": {
6+
"images": [
7+
{
8+
"name": "test.png",
9+
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAMklEQVR4nGI5ZdXAQEvARFPTRy0YtWDUglELRi0YtWDUglELRi0YtWDUAioCQAAAAP//E24Bx3jUKuYAAAAASUVORK5CYII="
10+
}
11+
],
612
"workflow": {
7-
"3": {
13+
"6": {
814
"inputs": {
9-
"seed": 234234,
10-
"steps": 20,
11-
"cfg": 8,
12-
"sampler_name": "euler",
13-
"scheduler": "normal",
14-
"denoise": 1,
15-
"model": ["4", 0],
16-
"positive": ["6", 0],
17-
"negative": ["7", 0],
18-
"latent_image": ["5", 0]
15+
"text": "anime cat with massive fluffy fennec ears and a big fluffy tail blonde messy long hair blue eyes wearing a construction outfit placing a fancy black forest cake with candles on top of a dinner table of an old dark Victorian mansion lit by candlelight with a bright window to the foggy forest and very expensive stuff everywhere there are paintings on the walls",
16+
"clip": ["30", 1]
1917
},
20-
"class_type": "KSampler"
18+
"class_type": "CLIPTextEncode",
19+
"_meta": {
20+
"title": "CLIP Text Encode (Positive Prompt)"
21+
}
2122
},
22-
"4": {
23+
"8": {
2324
"inputs": {
24-
"ckpt_name": "sd_xl_base_1.0.safetensors"
25+
"samples": ["31", 0],
26+
"vae": ["30", 2]
2527
},
26-
"class_type": "CheckpointLoaderSimple"
28+
"class_type": "VAEDecode",
29+
"_meta": {
30+
"title": "VAE Decode"
31+
}
2732
},
28-
"5": {
33+
"9": {
34+
"inputs": {
35+
"filename_prefix": "ComfyUI",
36+
"images": ["8", 0]
37+
},
38+
"class_type": "SaveImage",
39+
"_meta": {
40+
"title": "Save Image"
41+
}
42+
},
43+
"27": {
2944
"inputs": {
3045
"width": 512,
3146
"height": 512,
3247
"batch_size": 1
3348
},
34-
"class_type": "EmptyLatentImage"
49+
"class_type": "EmptySD3LatentImage",
50+
"_meta": {
51+
"title": "EmptySD3LatentImage"
52+
}
3553
},
36-
"6": {
54+
"30": {
3755
"inputs": {
38-
"text": "beautiful scenery nature glass bottle landscape, purple galaxy bottle,",
39-
"clip": ["4", 1]
56+
"ckpt_name": "flux1-dev-fp8.safetensors"
4057
},
41-
"class_type": "CLIPTextEncode"
58+
"class_type": "CheckpointLoaderSimple",
59+
"_meta": {
60+
"title": "Load Checkpoint"
61+
}
4262
},
43-
"7": {
63+
"31": {
4464
"inputs": {
45-
"text": "text, watermark",
46-
"clip": ["4", 1]
65+
"seed": 243057879077961,
66+
"steps": 10,
67+
"cfg": 1,
68+
"sampler_name": "euler",
69+
"scheduler": "simple",
70+
"denoise": 1,
71+
"model": ["30", 0],
72+
"positive": ["35", 0],
73+
"negative": ["33", 0],
74+
"latent_image": ["27", 0]
4775
},
48-
"class_type": "CLIPTextEncode"
76+
"class_type": "KSampler",
77+
"_meta": {
78+
"title": "KSampler"
79+
}
4980
},
50-
"8": {
81+
"33": {
5182
"inputs": {
52-
"samples": ["3", 0],
53-
"vae": ["4", 2]
83+
"text": "",
84+
"clip": ["30", 1]
5485
},
55-
"class_type": "VAEDecode"
86+
"class_type": "CLIPTextEncode",
87+
"_meta": {
88+
"title": "CLIP Text Encode (Negative Prompt)"
89+
}
5690
},
57-
"9": {
91+
"35": {
92+
"inputs": {
93+
"guidance": 3.5,
94+
"conditioning": ["6", 0]
95+
},
96+
"class_type": "FluxGuidance",
97+
"_meta": {
98+
"title": "FluxGuidance"
99+
}
100+
},
101+
"38": {
102+
"inputs": {
103+
"images": ["8", 0]
104+
},
105+
"class_type": "PreviewImage",
106+
"_meta": {
107+
"title": "Preview Image"
108+
}
109+
},
110+
"40": {
58111
"inputs": {
59-
"filename_prefix": "ComfyUI/test",
112+
"filename_prefix": "ComfyUI",
60113
"images": ["8", 0]
61114
},
62-
"class_type": "SaveImage"
115+
"class_type": "SaveImage",
116+
"_meta": {
117+
"title": "Save Image"
118+
}
63119
}
64120
}
65121
},
@@ -75,9 +131,6 @@
75131
"value": "false"
76132
}
77133
],
78-
"allowedCudaVersions": [
79-
"12.7",
80-
"12.6"
81-
]
134+
"allowedCudaVersions": ["12.7", "12.6"]
82135
}
83136
}

test_input.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)