mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 09:38:23 +02:00
@@ -104,7 +104,6 @@ class Script(scripts_manager.Script):
|
||||
|
||||
last_image = processed.images[0]
|
||||
p.init_images = [last_image]
|
||||
p.inpainting_fill = 1 # Set "masked content" to "original" for next loop.
|
||||
|
||||
if batch_count == 1:
|
||||
history.append(last_image)
|
||||
|
||||
@@ -126,7 +126,6 @@ class Script(scripts_manager.Script):
|
||||
process_height = p.height
|
||||
p.mask_blur = mask_blur*4
|
||||
p.inpaint_full_res = False
|
||||
p.inpainting_fill = 1
|
||||
p.do_not_save_samples = True
|
||||
p.do_not_save_grid = True
|
||||
left = pixels if "left" in direction else 0
|
||||
|
||||
@@ -22,15 +22,13 @@ class Script(scripts_manager.Script):
|
||||
pixels = gr.Slider(label="Pixels to expand", minimum=8, maximum=256, step=8, value=128, elem_id=self.elem_id("pixels"))
|
||||
mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=4, elem_id=self.elem_id("mask_blur"))
|
||||
with gr.Row():
|
||||
inpainting_fill = gr.Radio(label='Masked content', choices=['fill', 'original', 'latent noise', 'latent nothing'], value='fill', type="index", elem_id=self.elem_id("inpainting_fill"))
|
||||
direction = gr.CheckboxGroup(label="Outpainting direction", choices=['left', 'right', 'up', 'down'], value=['left', 'right', 'up', 'down'], elem_id=self.elem_id("direction"))
|
||||
return [pixels, mask_blur, inpainting_fill, direction]
|
||||
return [pixels, mask_blur, direction]
|
||||
|
||||
def run(self, p, pixels, mask_blur, inpainting_fill, direction): # pylint: disable=arguments-differ
|
||||
def run(self, p, pixels, mask_blur, direction): # pylint: disable=arguments-differ
|
||||
initial_seed = None
|
||||
initial_info = None
|
||||
p.mask_blur = mask_blur * 2
|
||||
p.inpainting_fill = inpainting_fill
|
||||
p.inpaint_full_res = False
|
||||
left = pixels if "left" in direction else 0
|
||||
right = pixels if "right" in direction else 0
|
||||
|
||||
Reference in New Issue
Block a user