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
6f9fcfdb
Commit
6f9fcfdb
authored
Jan 02, 2024
by
AUTOMATIC1111
Committed by
GitHub
Jan 02, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14497 from Jibaku789/dev
Add inpaint arguments in .txt file
parents
ac3cc1ad
a5b6a5a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
modules/img2img.py
modules/img2img.py
+12
-0
modules/ui.py
modules/ui.py
+4
-0
No files found.
modules/img2img.py
View file @
6f9fcfdb
...
...
@@ -225,6 +225,18 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
if
mask
:
p
.
extra_generation_params
[
"Mask blur"
]
=
mask_blur
if
inpainting_mask_invert
is
not
None
:
p
.
extra_generation_params
[
"Mask mode"
]
=
inpainting_mask_invert
if
inpainting_fill
is
not
None
:
p
.
extra_generation_params
[
"Masked content"
]
=
inpainting_fill
if
inpaint_full_res
is
not
None
:
p
.
extra_generation_params
[
"Inpaint area"
]
=
inpaint_full_res
if
inpaint_full_res_padding
is
not
None
:
p
.
extra_generation_params
[
"Only masked padding, pixels"
]
=
inpaint_full_res_padding
with
closing
(
p
):
if
is_batch
:
assert
not
shared
.
cmd_opts
.
hide_ui_dir_config
,
"Launched with --hide-ui-dir-config, batch img2img disabled"
...
...
modules/ui.py
View file @
6f9fcfdb
...
...
@@ -840,6 +840,10 @@ def create_ui():
(
toprow
.
ui_styles
.
dropdown
,
lambda
d
:
d
[
"Styles array"
]
if
isinstance
(
d
.
get
(
"Styles array"
),
list
)
else
gr
.
update
()),
(
denoising_strength
,
"Denoising strength"
),
(
mask_blur
,
"Mask blur"
),
(
inpainting_mask_invert
,
'Mask mode'
),
(
inpainting_fill
,
'Masked content'
),
(
inpaint_full_res
,
'Inpaint area'
),
(
inpaint_full_res_padding
,
'Only masked padding, pixels'
),
*
scripts
.
scripts_img2img
.
infotext_fields
]
parameters_copypaste
.
add_paste_fields
(
"img2img"
,
init_img
,
img2img_paste_fields
,
override_settings
)
...
...
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