opts.data[k]=v# we don't call onchange for simplicity which makes changing model impossible
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