Skip to content

Commit d64062d

Browse files
committed
Add SDXL stencil / qr code monster CN to downloads and allow universal for hands CN #1746
1 parent e3bde53 commit d64062d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

ai_diffusion/presets/models.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,16 @@
364364
}
365365
]
366366
},
367+
{
368+
"id": "controlnet-stencil-sdxl",
369+
"name": "ControlNet Stencil (XL)",
370+
"files": [
371+
{
372+
"path": "models/controlnet/control_v1p_sdxl_qrcode_monster.safetensors",
373+
"url": "https://huggingface.co/monster-labs/control_v1p_sdxl_qrcode_monster/resolve/main/diffusion_pytorch_model.safetensors"
374+
}
375+
]
376+
},
367377
{
368378
"id": "ip_adapter-face-sdxl",
369379
"name": "IP-Adapter Face (XL)",

ai_diffusion/resources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def can_substitute_universal(self, arch: Arch):
276276
ControlMode.pose,
277277
ControlMode.segmentation,
278278
ControlMode.blur,
279+
ControlMode.hands, # same as depth
279280
]
280281
if arch == Arch.flux:
281282
return self in [

ai_diffusion/ui/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def __init__(self, srv: Server, parent=None):
378378
sdxl_packages = self._packages["sdxl"]
379379
sdxl_packages.workload = Arch.sdxl
380380
state = [PackageState.selected for _ in sdxl_packages.values]
381+
state[-2] = PackageState.available # Stencil is optional
381382
state[-1] = PackageState.available # Face model is optional
382383
sdxl_packages.values = state
383384

0 commit comments

Comments
 (0)