mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
change up #2056 to make it work how i want it to plus make xy plot write correct values to images
This commit is contained in:
@@ -4,7 +4,6 @@ import sys
|
||||
from collections import namedtuple
|
||||
import torch
|
||||
from omegaconf import OmegaConf
|
||||
from pathlib import Path
|
||||
|
||||
from ldm.util import instantiate_from_config
|
||||
|
||||
@@ -158,7 +157,6 @@ 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