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
bd833409
Commit
bd833409
authored
Oct 09, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional changes for saving pnginfo for #1803
parent
0609ce06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
modules/extras.py
modules/extras.py
+4
-0
modules/processing.py
modules/processing.py
+4
-2
No files found.
modules/extras.py
View file @
bd833409
...
@@ -98,6 +98,10 @@ def run_extras(extras_mode, image, image_folder, gfpgan_visibility, codeformer_v
...
@@ -98,6 +98,10 @@ def run_extras(extras_mode, image, image_folder, gfpgan_visibility, codeformer_v
no_prompt
=
True
,
grid
=
False
,
pnginfo_section_name
=
"extras"
,
existing_info
=
existing_pnginfo
,
no_prompt
=
True
,
grid
=
False
,
pnginfo_section_name
=
"extras"
,
existing_info
=
existing_pnginfo
,
forced_filename
=
image_name
if
opts
.
use_original_name_batch
else
None
)
forced_filename
=
image_name
if
opts
.
use_original_name_batch
else
None
)
if
opts
.
enable_pnginfo
:
image
.
info
=
existing_pnginfo
image
.
info
[
"extras"
]
=
info
outputs
.
append
(
image
)
outputs
.
append
(
image
)
devices
.
torch_gc
()
devices
.
torch_gc
()
...
...
modules/processing.py
View file @
bd833409
...
@@ -451,7 +451,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -451,7 +451,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
text
=
infotext
(
n
,
i
)
text
=
infotext
(
n
,
i
)
infotexts
.
append
(
text
)
infotexts
.
append
(
text
)
image
.
info
[
"parameters"
]
=
text
if
opts
.
enable_pnginfo
:
image
.
info
[
"parameters"
]
=
text
output_images
.
append
(
image
)
output_images
.
append
(
image
)
del
x_samples_ddim
del
x_samples_ddim
...
@@ -470,7 +471,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -470,7 +471,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if
opts
.
return_grid
:
if
opts
.
return_grid
:
text
=
infotext
()
text
=
infotext
()
infotexts
.
insert
(
0
,
text
)
infotexts
.
insert
(
0
,
text
)
grid
.
info
[
"parameters"
]
=
text
if
opts
.
enable_pnginfo
:
grid
.
info
[
"parameters"
]
=
text
output_images
.
insert
(
0
,
grid
)
output_images
.
insert
(
0
,
grid
)
index_of_first_image
=
1
index_of_first_image
=
1
...
...
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