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
4e869090
Commit
4e869090
authored
Aug 12, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update seed/subseed HTML widths
parent
f0b72b81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
25 deletions
+15
-25
modules/processing_scripts/seed.py
modules/processing_scripts/seed.py
+15
-10
style.css
style.css
+0
-15
No files found.
modules/processing_scripts/seed.py
View file @
4e869090
...
...
@@ -24,19 +24,24 @@ class ScriptSeed(scripts.ScriptBuiltin):
def
ui
(
self
,
is_img2img
):
with
gr
.
Row
(
elem_id
=
self
.
elem_id
(
"seed_row"
)):
with
gr
.
Column
(
scale
=
1
,
min_width
=
205
):
with
gr
.
Row
():
if
cmd_opts
.
use_textbox_seed
:
self
.
seed
=
gr
.
Textbox
(
label
=
'Seed'
,
value
=
""
,
elem_id
=
self
.
elem_id
(
"seed"
)
)
self
.
seed
=
gr
.
Textbox
(
label
=
'Seed'
,
value
=
""
,
elem_id
=
self
.
elem_id
(
"seed"
),
min_width
=
100
)
else
:
self
.
seed
=
gr
.
Number
(
label
=
'Seed'
,
value
=-
1
,
elem_id
=
self
.
elem_id
(
"seed"
)
,
precision
=
0
)
self
.
seed
=
gr
.
Number
(
label
=
'Seed'
,
value
=-
1
,
elem_id
=
self
.
elem_id
(
"seed"
),
min_width
=
100
,
precision
=
0
)
random_seed
=
ToolButton
(
ui
.
random_symbol
,
elem_id
=
self
.
elem_id
(
"random_seed"
),
label
=
'Random seed'
)
reuse_seed
=
ToolButton
(
ui
.
reuse_symbol
,
elem_id
=
self
.
elem_id
(
"reuse_seed"
),
label
=
'Reuse seed'
)
subseed
=
gr
.
Number
(
label
=
'Variation seed'
,
value
=-
1
,
elem_id
=
self
.
elem_id
(
"subseed"
),
precision
=
0
)
with
gr
.
Column
(
scale
=
1
,
min_width
=
205
):
with
gr
.
Row
():
subseed
=
gr
.
Number
(
label
=
'Variation seed'
,
value
=-
1
,
elem_id
=
self
.
elem_id
(
"subseed"
),
min_width
=
100
,
precision
=
0
)
random_subseed
=
ToolButton
(
ui
.
random_symbol
,
elem_id
=
self
.
elem_id
(
"random_subseed"
))
reuse_subseed
=
ToolButton
(
ui
.
reuse_symbol
,
elem_id
=
self
.
elem_id
(
"reuse_subseed"
))
with
gr
.
Column
(
scale
=
2
,
min_width
=
100
):
subseed_strength
=
gr
.
Slider
(
label
=
'Variation strength'
,
value
=
0.0
,
minimum
=
0
,
maximum
=
1
,
step
=
0.01
,
elem_id
=
self
.
elem_id
(
"subseed_strength"
))
random_seed
.
click
(
fn
=
None
,
_js
=
"function(){setRandomSeed('"
+
self
.
elem_id
(
"seed"
)
+
"')}"
,
show_progress
=
False
,
inputs
=
[],
outputs
=
[])
...
...
style.css
View file @
4e869090
...
...
@@ -222,21 +222,6 @@ div.block.gradio-accordion {
padding
:
0.1em
0.75em
;
}
[
id
$
=
_seed
],
[
id
$
=
_subseed
]
{
max-width
:
10em
;
}
[
id
$
=
_subseed_show
]
{
min-width
:
auto
!important
;
flex-grow
:
0
!important
;
display
:
flex
;
}
[
id
$
=
_subseed_show
]
.label-wrap
{
margin
:
0
0
0
0.5em
;
align-self
:
end
;
}
.html-log
.comments
{
padding-top
:
0.5em
;
}
...
...
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