Change to access sd_model attribute with dot

This commit is contained in:
Uminosachi 2023-08-20 20:08:22 +09:00
parent 5159edbf0e
commit af5d2e8e5f

View File

@ -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)