Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
cd7e8fb4
Unverified
Commit
cd7e8fb4
authored
Jan 28, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 28, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7319 from Thurion/img2img_batch_fix
Fix error when using img2img batch without masks
parents
b7d2af8c
1421e959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
img2img.py
modules/img2img.py
+4
-2
No files found.
modules/img2img.py
View file @
cd7e8fb4
...
...
@@ -21,8 +21,10 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
images
=
shared
.
listfiles
(
input_dir
)
inpaint_masks
=
shared
.
listfiles
(
inpaint_mask_dir
)
is_inpaint_batch
=
inpaint_mask_dir
and
len
(
inpaint_masks
)
>
0
is_inpaint_batch
=
False
if
inpaint_mask_dir
:
inpaint_masks
=
shared
.
listfiles
(
inpaint_mask_dir
)
is_inpaint_batch
=
len
(
inpaint_masks
)
>
0
if
is_inpaint_batch
:
print
(
f
"
\n
Inpaint batch is enabled. {len(inpaint_masks)} masks found."
)
...
...
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