mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
video tab first prototype
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -360,6 +360,15 @@ class StableDiffusionProcessing:
|
||||
self.scripts = None
|
||||
|
||||
|
||||
class StableDiffusionProcessingVideo(StableDiffusionProcessing):
|
||||
def __init__(self, **kwargs):
|
||||
self.prompt_template: str = None
|
||||
self.frames: int = 1
|
||||
self.scheduler_shift: float = 0.0
|
||||
self.vae_tile_frames: int = 0
|
||||
debug(f'Process init: mode={self.__class__.__name__} kwargs={kwargs}') # pylint: disable=protected-access
|
||||
super().__init__(**kwargs)
|
||||
|
||||
class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
||||
def __init__(self, **kwargs):
|
||||
debug(f'Process init: mode={self.__class__.__name__} kwargs={kwargs}') # pylint: disable=protected-access
|
||||
@@ -592,9 +601,6 @@ class StableDiffusionProcessingControl(StableDiffusionProcessingImg2Img):
|
||||
self.hr_upscale_to_x, self.hr_upscale_to_y = 8 * int(self.width * scale / 8), 8 * int(self.height * scale / 8)
|
||||
else:
|
||||
self.hr_upscale_to_x, self.hr_upscale_to_y = self.hr_resize_x, self.hr_resize_y
|
||||
# hypertile_set(self, hr=True)
|
||||
# shared.state.job_count = 2 * self.n_iter
|
||||
# shared.log.debug(f'Control refine: upscaler="{self.hr_upscaler}" scale={scale} fixed={not use_scale} size={self.hr_upscale_to_x}x{self.hr_upscale_to_y}')
|
||||
|
||||
|
||||
def switch_class(p: StableDiffusionProcessing, new_class: type, dct: dict = None):
|
||||
|
||||
Reference in New Issue
Block a user