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
4a879dc6
Commit
4a879dc6
authored
Sep 27, 2022
by
DepFA
Committed by
GitHub
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert Script changes
parent
5de8c811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
modules/scripts.py
modules/scripts.py
+2
-12
No files found.
modules/scripts.py
View file @
4a879dc6
...
@@ -55,12 +55,6 @@ class Script:
...
@@ -55,12 +55,6 @@ class Script:
# your description as the value.
# your description as the value.
def
describe
(
self
):
def
describe
(
self
):
return
""
return
""
# If your script is only compatible with a subset of samplers, return the sampler
# names here, an empty list indicates compatibility with all samplers, for a full
# listing of current sampler names import modules.sd_samplers.samplers
def
compatible_samplers
(
self
):
return
[]
scripts_data
=
[]
scripts_data
=
[]
...
@@ -137,11 +131,7 @@ class ScriptRunner:
...
@@ -137,11 +131,7 @@ class ScriptRunner:
for
control
in
controls
:
for
control
in
controls
:
control
.
custom_script_source
=
os
.
path
.
basename
(
script
.
filename
)
control
.
custom_script_source
=
os
.
path
.
basename
(
script
.
filename
)
control
.
visible
=
False
control
.
visible
=
False
concat_compatible_samplers
=
","
.
join
(
script
.
compatible_samplers
())
inputs
+=
[
gr
.
HTML
(
value
=
'<span class="customScriptAttrs" data-supported-samplers="{}"></span>'
.
format
(
concat_compatible_samplers
))]
inputs
[
-
1
]
.
visible
=
False
inputs
+=
controls
inputs
+=
controls
script
.
args_to
=
len
(
inputs
)
script
.
args_to
=
len
(
inputs
)
...
@@ -189,7 +179,7 @@ class ScriptRunner:
...
@@ -189,7 +179,7 @@ class ScriptRunner:
if
script
is
None
:
if
script
is
None
:
return
None
return
None
script_args
=
args
[
script
.
args_from
+
1
:
script
.
args_to
]
script_args
=
args
[
script
.
args_from
:
script
.
args_to
]
processed
=
script
.
run
(
p
,
*
script_args
)
processed
=
script
.
run
(
p
,
*
script_args
)
shared
.
total_tqdm
.
clear
()
shared
.
total_tqdm
.
clear
()
...
...
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