mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-27 17:51:22 +00:00
prompt-all-in-one now works
fix for webui backward compatibility
This commit is contained in:
@@ -1,41 +1,32 @@
|
||||
# class StableDiffusionModelHijack:
|
||||
# fixes = None
|
||||
# layers = None
|
||||
# circular_enabled = False
|
||||
# clip = None
|
||||
# optimization_method = None
|
||||
#
|
||||
# def __init__(self):
|
||||
# self.extra_generation_params = {}
|
||||
# self.comments = []
|
||||
#
|
||||
# def apply_optimizations(self, option=None):
|
||||
# pass
|
||||
#
|
||||
# def convert_sdxl_to_ssd(self, m):
|
||||
# pass
|
||||
#
|
||||
# def hijack(self, m):
|
||||
# pass
|
||||
#
|
||||
# def undo_hijack(self, m):
|
||||
# pass
|
||||
#
|
||||
# def apply_circular(self, enable):
|
||||
# pass
|
||||
#
|
||||
# def clear_comments(self):
|
||||
# self.comments = []
|
||||
# self.extra_generation_params = {}
|
||||
#
|
||||
# def get_prompt_lengths(self, text, cond_stage_model):
|
||||
# pass
|
||||
#
|
||||
# def redo_hijack(self, m):
|
||||
# pass
|
||||
#
|
||||
#
|
||||
# model_hijack = StableDiffusionModelHijack()
|
||||
class StableDiffusionModelHijack:
|
||||
|
||||
def apply_optimizations(self, option=None):
|
||||
pass
|
||||
|
||||
def convert_sdxl_to_ssd(self, m):
|
||||
pass
|
||||
|
||||
def hijack(self, m):
|
||||
pass
|
||||
|
||||
def undo_hijack(self, m):
|
||||
pass
|
||||
|
||||
def apply_circular(self, enable):
|
||||
pass
|
||||
|
||||
def clear_comments(self):
|
||||
pass
|
||||
|
||||
def get_prompt_lengths(self, text, cond_stage_model):
|
||||
from modules import shared
|
||||
return shared.sd_model.get_prompt_lengths_on_ui(text)
|
||||
|
||||
def redo_hijack(self, m):
|
||||
pass
|
||||
|
||||
|
||||
model_hijack = StableDiffusionModelHijack()
|
||||
|
||||
# import torch
|
||||
# from torch.nn.functional import silu
|
||||
|
||||
Reference in New Issue
Block a user