mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
Added extended model details to infotext
This commit is contained in:

committed by
AUTOMATIC1111

parent
542a3d3a4a
commit
d6d10a37bf
@@ -4,7 +4,7 @@ import sys
|
||||
from collections import namedtuple
|
||||
import torch
|
||||
from omegaconf import OmegaConf
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from ldm.util import instantiate_from_config
|
||||
|
||||
@@ -158,6 +158,7 @@ def load_model_weights(model, checkpoint_info):
|
||||
vae_dict = {k: v for k, v in vae_ckpt["state_dict"].items() if k[0:4] != "loss"}
|
||||
|
||||
model.first_stage_model.load_state_dict(vae_dict)
|
||||
model.sd_model_vae_name = Path(vae_file).stem
|
||||
|
||||
model.sd_model_hash = sd_model_hash
|
||||
model.sd_model_checkpoint = checkpoint_file
|
||||
|
Reference in New Issue
Block a user