aboutsummaryrefslogtreecommitdiff
path: root/scripts/poor_mans_outpainting.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-11-04 08:38:11 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-11-04 08:38:19 +0300
commit4dd898b8c15e342f817d3fb1c8dc9f2d5d111022 (patch)
tree9ac38cfb3fab5edf3d61bae2a8825b5755173e5d /scripts/poor_mans_outpainting.py
parent59a21a67d220d6943be2fc3c5632c02c3ffc99d1 (diff)
do not mess with components' visibility for scripts; instead create group components and show/hide those; this will break scripts that create invisible components and rely on UI but the earlier i make this change the better
Diffstat (limited to 'scripts/poor_mans_outpainting.py')
-rw-r--r--scripts/poor_mans_outpainting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/poor_mans_outpainting.py b/scripts/poor_mans_outpainting.py
index b0469110..ea45beb0 100644
--- a/scripts/poor_mans_outpainting.py
+++ b/scripts/poor_mans_outpainting.py
@@ -22,8 +22,8 @@ class Script(scripts.Script):
return None
pixels = gr.Slider(label="Pixels to expand", minimum=8, maximum=256, step=8, value=128)
- mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=4, visible=False)
- inpainting_fill = gr.Radio(label='Masked content', choices=['fill', 'original', 'latent noise', 'latent nothing'], value='fill', type="index", visible=False)
+ mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=4)
+ inpainting_fill = gr.Radio(label='Masked content', choices=['fill', 'original', 'latent noise', 'latent nothing'], value='fill', type="index")
direction = gr.CheckboxGroup(label="Outpainting direction", choices=['left', 'right', 'up', 'down'], value=['left', 'right', 'up', 'down'])
return [pixels, mask_blur, inpainting_fill, direction]