Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
f5866199
Commit
f5866199
authored
Jul 16, 2024
by
Haoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ids
parent
b2453d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/ui.py
modules/ui.py
+3
-3
No files found.
modules/ui.py
View file @
f5866199
...
@@ -622,8 +622,8 @@ def create_ui():
...
@@ -622,8 +622,8 @@ def create_ui():
with
gr
.
Column
(
elem_id
=
"img2img_column_size"
,
scale
=
4
):
with
gr
.
Column
(
elem_id
=
"img2img_column_size"
,
scale
=
4
):
selected_scale_tab
=
gr
.
Number
(
value
=
0
,
visible
=
False
)
selected_scale_tab
=
gr
.
Number
(
value
=
0
,
visible
=
False
)
with
gr
.
Tabs
():
with
gr
.
Tabs
(
elem_id
=
"img2img_tabs_resize"
):
with
gr
.
Tab
(
label
=
"Resize to"
,
elem_id
=
"img2img_tab_resize_to"
)
as
tab_scale_to
:
with
gr
.
Tab
(
label
=
"Resize to"
,
id
=
"to"
,
elem_id
=
"img2img_tab_resize_to"
)
as
tab_scale_to
:
with
FormRow
():
with
FormRow
():
with
gr
.
Column
(
elem_id
=
"img2img_column_size"
,
scale
=
4
):
with
gr
.
Column
(
elem_id
=
"img2img_column_size"
,
scale
=
4
):
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"img2img_width"
)
width
=
gr
.
Slider
(
minimum
=
64
,
maximum
=
2048
,
step
=
8
,
label
=
"Width"
,
value
=
512
,
elem_id
=
"img2img_width"
)
...
@@ -632,7 +632,7 @@ def create_ui():
...
@@ -632,7 +632,7 @@ def create_ui():
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"img2img_res_switch_btn"
,
tooltip
=
"Switch width/height"
)
res_switch_btn
=
ToolButton
(
value
=
switch_values_symbol
,
elem_id
=
"img2img_res_switch_btn"
,
tooltip
=
"Switch width/height"
)
detect_image_size_btn
=
ToolButton
(
value
=
detect_image_size_symbol
,
elem_id
=
"img2img_detect_image_size_btn"
,
tooltip
=
"Auto detect size from img2img"
)
detect_image_size_btn
=
ToolButton
(
value
=
detect_image_size_symbol
,
elem_id
=
"img2img_detect_image_size_btn"
,
tooltip
=
"Auto detect size from img2img"
)
with
gr
.
Tab
(
label
=
"Resize by"
,
elem_id
=
"img2img_tab_resize_by"
)
as
tab_scale_by
:
with
gr
.
Tab
(
label
=
"Resize by"
,
id
=
"by"
,
elem_id
=
"img2img_tab_resize_by"
)
as
tab_scale_by
:
scale_by
=
gr
.
Slider
(
minimum
=
0.05
,
maximum
=
4.0
,
step
=
0.05
,
label
=
"Scale"
,
value
=
1.0
,
elem_id
=
"img2img_scale"
)
scale_by
=
gr
.
Slider
(
minimum
=
0.05
,
maximum
=
4.0
,
step
=
0.05
,
label
=
"Scale"
,
value
=
1.0
,
elem_id
=
"img2img_scale"
)
with
FormRow
():
with
FormRow
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment