Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix issue with sampling_settings persisting across models.

comfyanonymous831511a1eecb
diff --git a/comfy/supported_models_base.py b/comfy/supported_models_base.py
index 6196daabf..cf7cdff34 100644
--- a/comfy/supported_models_base.py
+++ b/comfy/supported_models_base.py
@@ -47,7 +47,8 @@ class BASE:
return self.unet_config["in_channels"] > 4
def __init__(self, unet_config):
- self.unet_config = unet_config
+ self.unet_config = unet_config.copy()
+ self.sampling_settings = self.sampling_settings.copy()
self.latent_format = self.latent_format()
for x in self.unet_extra_config:
self.unet_config[x] = self.unet_extra_config[x]