Skip to content

Commit 3c343c0

Browse files
committed
controlnet_bundle
1 parent 92e03a9 commit 3c343c0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/diffusers/modular_pipelines/mellon_node_utils.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"min": 0,
5555
"max": 1,
5656
},
57-
"controlnet": {
57+
"controlnet_bundle": {
5858
"label": "Controlnet",
5959
"type": "custom_controlnet",
6060
"display": "input",
@@ -183,6 +183,11 @@
183183
"type": "diffusers_auto_model",
184184
"display": "input",
185185
},
186+
"controlnet_bundle": {
187+
"label": "Controlnet",
188+
"type": "custom_controlnet",
189+
"display": "input",
190+
},
186191
}
187192

188193
# Mellon Output Parameters (display = "output")
@@ -212,10 +217,10 @@
212217
"display": "output",
213218
"type": "latent",
214219
},
215-
"controlnet_out": {
220+
"controlnet_bundle": {
216221
"label": "Controlnet",
217222
"display": "output",
218-
"type": "controlnet",
223+
"type": "custom_controlnet",
219224
},
220225
"doc": {
221226
"label": "Doc",
@@ -227,6 +232,7 @@
227232

228233
# Default param selections per supported node_type
229234
# from MELLON_INPUT_PARAMS / MELLON_MODEL_PARAMS / MELLON_OUTPUT_PARAMS.
235+
# YiYi notes: not used for now
230236
NODE_TYPE_PARAMS_MAP = {
231237
"controlnet": {
232238
"inputs": [
@@ -242,7 +248,7 @@
242248
"vae",
243249
],
244250
"outputs": [
245-
"controlnet",
251+
"controlnet_bundle",
246252
],
247253
"block_name": "controlnet_vae_encoder",
248254
},
@@ -257,14 +263,15 @@
257263
"image_latents",
258264
"strength",
259265
# custom adapters coming in as inputs
260-
"controlnet",
266+
"controlnet_bundle",
261267
# ip_adapter is optional and custom; include if available
262268
"ip_adapter",
263269
],
264270
"model_inputs": [
265271
"unet",
266272
"guider",
267273
"scheduler",
274+
"controlnet_bundle",
268275
],
269276
"outputs": [
270277
"latents",

0 commit comments

Comments
 (0)