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
dce7fc90
Commit
dce7fc90
authored
Oct 11, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
530103b5
1a0a6a84
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
scripts/loopback.py
scripts/loopback.py
+4
-0
scripts/xy_grid.py
scripts/xy_grid.py
+3
-0
No files found.
scripts/loopback.py
View file @
dce7fc90
...
...
@@ -38,6 +38,7 @@ class Script(scripts.Script):
grids
=
[]
all_images
=
[]
original_init_image
=
p
.
init_images
state
.
job_count
=
loops
*
batch_count
initial_color_corrections
=
[
processing
.
setup_color_correction
(
p
.
init_images
[
0
])]
...
...
@@ -45,6 +46,9 @@ class Script(scripts.Script):
for
n
in
range
(
batch_count
):
history
=
[]
# Reset to original init image at the start of each batch
p
.
init_images
=
original_init_image
for
i
in
range
(
loops
):
p
.
n_iter
=
1
p
.
batch_size
=
1
...
...
scripts/xy_grid.py
View file @
dce7fc90
...
...
@@ -28,6 +28,9 @@ def apply_field(field):
def
apply_prompt
(
p
,
x
,
xs
):
if
xs
[
0
]
not
in
p
.
prompt
and
xs
[
0
]
not
in
p
.
negative_prompt
:
raise
RuntimeError
(
f
"Prompt S/R did not find {xs[0]} in prompt or negative prompt."
)
p
.
prompt
=
p
.
prompt
.
replace
(
xs
[
0
],
x
)
p
.
negative_prompt
=
p
.
negative_prompt
.
replace
(
xs
[
0
],
x
)
...
...
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