setattr(opts,k,v)# we don't call onchange for simplicity which makes changing model impossible
ifk=='sd_hypernetwork':shared.reload_hypernetworks()# make onchange call for changing hypernet since it is relatively fast to load on-change, while SD models are not
setattr(opts,k,v)
ifk=='sd_hypernetwork':shared.reload_hypernetworks()# make onchange call for changing hypernet
ifk=='sd_model_checkpoint':sd_models.reload_model_weights()# make onchange call for changing SD model
ifk=='sd_vae':sd_vae.reload_vae_weights()# make onchange call for changing VAE