Merge pull request #50 from ttulttul/main

Fixed issue #49 upstream by cloning the model before patching it
This commit is contained in:
nullquant
2024-05-04 19:49:06 +03:00
committed by GitHub
+4
View File
@@ -169,6 +169,10 @@ class BrushNet:
def model_update(self, model, vae, image, mask, brushnet, positive, negative, scale, start_at, end_at):
# Make a copy of the model so that we're not patching it everywhere in
# the workflow.
model = model.clone()
is_SDXL = False
if isinstance(model.model.model_config, comfy.supported_models.SD15):
print('Base model type: SD1.5')