From af5d2e8e5fc4440691fb7f1aa3492def1c755722 Mon Sep 17 00:00:00 2001 From: Uminosachi <49424133+Uminosachi@users.noreply.github.com> Date: Sun, 20 Aug 2023 20:08:22 +0900 Subject: [PATCH] Change to access sd_model attribute with dot --- modules/sd_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sd_models.py b/modules/sd_models.py index 150d550b6..dd749122c 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -498,8 +498,8 @@ class SdModelData: pass if v is not None: - setattr(v, "base_vae", sd_vae.base_vae) - setattr(v, "loaded_vae_file", sd_vae.loaded_vae_file) + v.base_vae = sd_vae.base_vae + v.loaded_vae_file = sd_vae.loaded_vae_file self.loaded_sd_models.insert(0, v)