mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
remove unused code
This commit is contained in:
parent
1e696b028a
commit
51e7122f25
@ -95,17 +95,6 @@ def confirm_checkpoints_or_none(p, xs):
|
|||||||
raise RuntimeError(f"Unknown checkpoint: {x}")
|
raise RuntimeError(f"Unknown checkpoint: {x}")
|
||||||
|
|
||||||
|
|
||||||
def apply_clip_skip(p, x, xs):
|
|
||||||
opts.data["CLIP_stop_at_last_layers"] = x
|
|
||||||
|
|
||||||
|
|
||||||
def apply_upscale_latent_space(p, x, xs):
|
|
||||||
if x.lower().strip() != '0':
|
|
||||||
opts.data["use_scale_latent_for_hires_fix"] = True
|
|
||||||
else:
|
|
||||||
opts.data["use_scale_latent_for_hires_fix"] = False
|
|
||||||
|
|
||||||
|
|
||||||
def apply_size(p, x: str, xs) -> None:
|
def apply_size(p, x: str, xs) -> None:
|
||||||
try:
|
try:
|
||||||
width, _, height = x.partition('x')
|
width, _, height = x.partition('x')
|
||||||
|
Loading…
Reference in New Issue
Block a user