mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-28 18:21:48 +00:00
fix hr fix prompt
This commit is contained in:
@@ -11,6 +11,7 @@ import safetensors.torch
|
|||||||
from omegaconf import OmegaConf, ListConfig
|
from omegaconf import OmegaConf, ListConfig
|
||||||
from urllib import request
|
from urllib import request
|
||||||
import gc
|
import gc
|
||||||
|
import contextlib
|
||||||
|
|
||||||
from modules import paths, shared, modelloader, devices, script_callbacks, sd_vae, sd_disable_initialization, errors, hashes, sd_models_config, sd_unet, sd_models_xl, cache, extra_networks, processing, lowvram, sd_hijack, patches
|
from modules import paths, shared, modelloader, devices, script_callbacks, sd_vae, sd_disable_initialization, errors, hashes, sd_models_config, sd_unet, sd_models_xl, cache, extra_networks, processing, lowvram, sd_hijack, patches
|
||||||
from modules.shared import opts, cmd_opts
|
from modules.shared import opts, cmd_opts
|
||||||
@@ -301,8 +302,8 @@ def get_checkpoint_state_dict(checkpoint_info: CheckpointInfo, timer):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
class SkipWritingToConfig:
|
def SkipWritingToConfig():
|
||||||
pass
|
return contextlib.nullcontext()
|
||||||
|
|
||||||
|
|
||||||
def check_fp8(model):
|
def check_fp8(model):
|
||||||
|
|||||||
Reference in New Issue
Block a user