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
c4c63dd5
Commit
c4c63dd5
authored
Jun 20, 2023
by
Ferdinand Weynschenk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve linter
parent
7ad48120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
modules/img2img.py
modules/img2img.py
+4
-3
modules/ui.py
modules/ui.py
+1
-1
No files found.
modules/img2img.py
View file @
c4c63dd5
...
@@ -67,7 +67,7 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp
...
@@ -67,7 +67,7 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp
mask_image_path
=
inpaint_masks
[
0
]
mask_image_path
=
inpaint_masks
[
0
]
mask_image
=
Image
.
open
(
mask_image_path
)
mask_image
=
Image
.
open
(
mask_image_path
)
p
.
image_mask
=
mask_image
p
.
image_mask
=
mask_image
if
use_png_info
:
if
use_png_info
:
try
:
try
:
info_img
=
img
info_img
=
img
...
@@ -88,14 +88,15 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp
...
@@ -88,14 +88,15 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp
p
.
sampler_name
=
parsed_parameters
[
"Sampler"
]
p
.
sampler_name
=
parsed_parameters
[
"Sampler"
]
if
(
"Steps"
in
png_info_props
):
if
(
"Steps"
in
png_info_props
):
p
.
steps
=
int
(
parsed_parameters
[
"Steps"
])
p
.
steps
=
int
(
parsed_parameters
[
"Steps"
])
except
:
except
Exception
as
e
:
print
(
f
"batch png info: using ui set prompts; failed to get png info for {image}"
)
print
(
e
)
p
.
prompt
=
prompt
p
.
prompt
=
prompt
p
.
negative_prompt
=
negative_prompt
p
.
negative_prompt
=
negative_prompt
p
.
seed
=
seed
p
.
seed
=
seed
p
.
cfg_scale
=
cfg_scale
p
.
cfg_scale
=
cfg_scale
p
.
sampler_name
=
sampler_name
p
.
sampler_name
=
sampler_name
p
.
steps
=
steps
p
.
steps
=
steps
print
(
f
"batch png info: using ui set prompts; failed to get png info for {image}"
)
proc
=
modules
.
scripts
.
scripts_img2img
.
run
(
p
,
*
args
)
proc
=
modules
.
scripts
.
scripts_img2img
.
run
(
p
,
*
args
)
if
proc
is
None
:
if
proc
is
None
:
...
...
modules/ui.py
View file @
c4c63dd5
...
@@ -948,7 +948,7 @@ def create_ui():
...
@@ -948,7 +948,7 @@ def create_ui():
inpaint_full_res_padding
,
inpaint_full_res_padding
,
inpainting_mask_invert
,
inpainting_mask_invert
,
img2img_batch_use_png_info
,
img2img_batch_use_png_info
,
img2img_batch_png_info_props
,
img2img_batch_png_info_props
,
img2img_batch_png_info_dir
,
img2img_batch_png_info_dir
,
img2img_batch_input_dir
,
img2img_batch_input_dir
,
img2img_batch_output_dir
,
img2img_batch_output_dir
,
...
...
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