[Fix] Unsupported width and height argument error

This commit is contained in:
m68k-fr
2023-02-26 00:27:34 +01:00
committed by Gaurav Shukla
parent d567192fd3
commit 7136890da3
5 changed files with 14 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ p.add_argument(
"--height",
type=int,
default=512,
choices=range(384, 768, 8),
choices=range(384, 769, 8),
help="the height of the output image.",
)
@@ -69,7 +69,7 @@ p.add_argument(
"--width",
type=int,
default=512,
choices=range(384, 768, 8),
choices=range(384, 769, 8),
help="the width of the output image.",
)
@@ -108,7 +108,7 @@ p.add_argument(
"--pixels",
type=int,
default=128,
choices=range(8, 256, 8),
choices=range(8, 257, 8),
help="Number of expended pixels for one direction for outpainting",
)
@@ -116,7 +116,7 @@ p.add_argument(
"--mask_blur",
type=int,
default=8,
choices=range(0, 64),
choices=range(0, 65),
help="Number of blur pixels for outpainting",
)

View File

@@ -102,10 +102,10 @@ with gr.Blocks(title="Image-to-Image") as img2img_web:
)
with gr.Row():
height = gr.Slider(
384, 786, value=args.height, step=8, label="Height"
384, 768, value=args.height, step=8, label="Height"
)
width = gr.Slider(
384, 786, value=args.width, step=8, label="Width"
384, 768, value=args.width, step=8, label="Width"
)
precision = gr.Radio(
label="Precision",

View File

@@ -51,7 +51,7 @@ with gr.Blocks(title="Inpainting") as inpaint_web:
],
)
hf_model_id = gr.Textbox(
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: SG161222/Realistic_Vision_V1.3",
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: ghunkins/stable-diffusion-liberty-inpainting",
value="",
label="HuggingFace Model ID",
lines=3,
@@ -103,10 +103,10 @@ with gr.Blocks(title="Inpainting") as inpaint_web:
)
with gr.Row():
height = gr.Slider(
384, 786, value=args.height, step=8, label="Height"
384, 768, value=args.height, step=8, label="Height"
)
width = gr.Slider(
384, 786, value=args.width, step=8, label="Width"
384, 768, value=args.width, step=8, label="Width"
)
precision = gr.Radio(
label="Precision",

View File

@@ -51,7 +51,7 @@ with gr.Blocks(title="Outpainting") as outpaint_web:
],
)
hf_model_id = gr.Textbox(
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: SG161222/Realistic_Vision_V1.3",
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: ghunkins/stable-diffusion-liberty-inpainting",
value="",
label="HuggingFace Model ID",
lines=3,
@@ -134,10 +134,10 @@ with gr.Blocks(title="Outpainting") as outpaint_web:
)
with gr.Row():
height = gr.Slider(
384, 786, value=args.height, step=8, label="Height"
384, 768, value=args.height, step=8, label="Height"
)
width = gr.Slider(
384, 786, value=args.width, step=8, label="Width"
384, 768, value=args.width, step=8, label="Width"
)
precision = gr.Radio(
label="Precision",

View File

@@ -103,10 +103,10 @@ with gr.Blocks(title="Text-to-Image") as txt2img_web:
)
with gr.Row():
height = gr.Slider(
384, 786, value=args.height, step=8, label="Height"
384, 768, value=args.height, step=8, label="Height"
)
width = gr.Slider(
384, 786, value=args.width, step=8, label="Width"
384, 768, value=args.width, step=8, label="Width"
)
precision = gr.Radio(
label="Precision",