This commit is contained in:
nullquant
2024-04-30 15:32:33 +03:00
parent e60db263c6
commit 0f9f8093f3
4 changed files with 4 additions and 3 deletions
+4 -3
View File
@@ -168,7 +168,7 @@ class BrushNet:
is_SDXL = True
if not brushnet["SDXL"]:
raise Exception("Base model is SDXL, but BrushNet is SD15 type")
raise Exception("SDXL is not implemented yet")
#raise Exception("SDXL is not implemented yet")
else:
print('Base model type: ', type(model.model.model_config))
raise Exception("Unsupported model type: " + str(type(model.model.model_config)))
@@ -217,11 +217,12 @@ class BrushNet:
# apply patches to code
if 'BrushNet' not in nodes.common_ksampler.__doc__:
if nodes.common_ksampler.__doc__ is None or 'BrushNet' not in nodes.common_ksampler.__doc__:
nodes.original_common_ksampler = nodes.common_ksampler
nodes.common_ksampler = modified_common_ksampler
if 'BrushNet' not in comfy.ldm.modules.diffusionmodules.openaimodel.forward_timestep_embed.__doc__:
if comfy.ldm.modules.diffusionmodules.openaimodel.forward_timestep_embed.__doc__ is None or \
'BrushNet' not in comfy.ldm.modules.diffusionmodules.openaimodel.forward_timestep_embed.__doc__:
comfy.ldm.modules.diffusionmodules.openaimodel.original_forward_timestep_embed = \
comfy.ldm.modules.diffusionmodules.openaimodel.forward_timestep_embed
comfy.ldm.modules.diffusionmodules.openaimodel.forward_timestep_embed = modified_forward_timestep_embed
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB