Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Qirui Sun
sd-webui-controlnet
Commits
0a8581be
Commit
0a8581be
authored
1 year ago
by
Qirui Sun
Browse files
Options
Download
Email Patches
Plain Diff
add refresh button
parent
21e9024b
xiaoyu_test
ip-branch
1 merge request
!1
now merge Ip branch to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/controlnet_ui/controlnet_ui_group.py
+7
-3
scripts/controlnet_ui/controlnet_ui_group.py
with
7 additions
and
3 deletions
+7
-3
scripts/controlnet_ui/controlnet_ui_group.py
+
7
-
3
View file @
0a8581be
...
...
@@ -454,9 +454,13 @@ class ControlNetUiGroup(object):
except
FileNotFoundError
as
e
:
info
=
f
"Error: This path is not valid ==>
{
e
}
"
return
info
self
.
multi_references_dir
=
gr
.
Textbox
()
self
.
image_ids
=
gr
.
Textbox
()
self
.
multi_references_dir
.
change
(
input_change
,
inputs
=
[
self
.
multi_references_dir
],
outputs
=
self
.
image_ids
)
self
.
multi_references_dir
=
gr
.
Textbox
(
label
=
'Cache File Path'
)
self
.
image_ids
=
gr
.
Textbox
(
label
=
'Total number of pictures'
)
self
.
refresh_images
=
ToolButton
(
value
=
ControlNetUiGroup
.
refresh_symbol
,
tooltip
=
ControlNetUiGroup
.
tooltips
[
ControlNetUiGroup
.
refresh_symbol
],
)
self
.
refresh_images
.
click
(
input_change
,
inputs
=
[
self
.
multi_references_dir
],
outputs
=
self
.
image_ids
)
self
.
IP_mode
=
gr
.
Dropdown
(
[
'last_5layers'
,
'front_5layers'
,
'10layers'
,
'upblocks_only'
,
'Full'
],
label
=
'IP Mode'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets