Skip to content

Commit 7136890

Browse files
m68k-frShukla-Gaurav
authored andcommitted
[Fix] Unsupported width and height argument error
1 parent d567192 commit 7136890

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

apps/stable_diffusion/src/utils/stable_args.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ def path_expand(s):
6161
"--height",
6262
type=int,
6363
default=512,
64-
choices=range(384, 768, 8),
64+
choices=range(384, 769, 8),
6565
help="the height of the output image.",
6666
)
6767

6868
p.add_argument(
6969
"--width",
7070
type=int,
7171
default=512,
72-
choices=range(384, 768, 8),
72+
choices=range(384, 769, 8),
7373
help="the width of the output image.",
7474
)
7575

@@ -108,15 +108,15 @@ def path_expand(s):
108108
"--pixels",
109109
type=int,
110110
default=128,
111-
choices=range(8, 256, 8),
111+
choices=range(8, 257, 8),
112112
help="Number of expended pixels for one direction for outpainting",
113113
)
114114

115115
p.add_argument(
116116
"--mask_blur",
117117
type=int,
118118
default=8,
119-
choices=range(0, 64),
119+
choices=range(0, 65),
120120
help="Number of blur pixels for outpainting",
121121
)
122122

apps/stable_diffusion/web/ui/img2img_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
)
103103
with gr.Row():
104104
height = gr.Slider(
105-
384, 786, value=args.height, step=8, label="Height"
105+
384, 768, value=args.height, step=8, label="Height"
106106
)
107107
width = gr.Slider(
108-
384, 786, value=args.width, step=8, label="Width"
108+
384, 768, value=args.width, step=8, label="Width"
109109
)
110110
precision = gr.Radio(
111111
label="Precision",

apps/stable_diffusion/web/ui/inpaint_ui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
],
5252
)
5353
hf_model_id = gr.Textbox(
54-
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: SG161222/Realistic_Vision_V1.3",
54+
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: ghunkins/stable-diffusion-liberty-inpainting",
5555
value="",
5656
label="HuggingFace Model ID",
5757
lines=3,
@@ -103,10 +103,10 @@
103103
)
104104
with gr.Row():
105105
height = gr.Slider(
106-
384, 786, value=args.height, step=8, label="Height"
106+
384, 768, value=args.height, step=8, label="Height"
107107
)
108108
width = gr.Slider(
109-
384, 786, value=args.width, step=8, label="Width"
109+
384, 768, value=args.width, step=8, label="Width"
110110
)
111111
precision = gr.Radio(
112112
label="Precision",

apps/stable_diffusion/web/ui/outpaint_ui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
],
5252
)
5353
hf_model_id = gr.Textbox(
54-
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: SG161222/Realistic_Vision_V1.3",
54+
placeholder="Select 'None' in the Models dropdown on the left and enter model ID here e.g: ghunkins/stable-diffusion-liberty-inpainting",
5555
value="",
5656
label="HuggingFace Model ID",
5757
lines=3,
@@ -134,10 +134,10 @@
134134
)
135135
with gr.Row():
136136
height = gr.Slider(
137-
384, 786, value=args.height, step=8, label="Height"
137+
384, 768, value=args.height, step=8, label="Height"
138138
)
139139
width = gr.Slider(
140-
384, 786, value=args.width, step=8, label="Width"
140+
384, 768, value=args.width, step=8, label="Width"
141141
)
142142
precision = gr.Radio(
143143
label="Precision",

apps/stable_diffusion/web/ui/txt2img_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@
103103
)
104104
with gr.Row():
105105
height = gr.Slider(
106-
384, 786, value=args.height, step=8, label="Height"
106+
384, 768, value=args.height, step=8, label="Height"
107107
)
108108
width = gr.Slider(
109-
384, 786, value=args.width, step=8, label="Width"
109+
384, 768, value=args.width, step=8, label="Width"
110110
)
111111
precision = gr.Radio(
112112
label="Precision",

0 commit comments

Comments
 (0)