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
fc89495d
Unverified
Commit
fc89495d
authored
Oct 29, 2022
by
AUTOMATIC1111
Committed by
GitHub
Oct 29, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3771 from aria1th/patch-12
Disable unavailable or duplicate options for Activation functions
parents
d5f31f1e
f361e804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ui.py
modules/hypernetworks/ui.py
+2
-1
No files found.
modules/hypernetworks/ui.py
View file @
fc89495d
...
...
@@ -8,7 +8,8 @@ import modules.textual_inversion.textual_inversion
from
modules
import
devices
,
sd_hijack
,
shared
from
modules.hypernetworks
import
hypernetwork
keys
=
list
(
hypernetwork
.
HypernetworkModule
.
activation_dict
.
keys
())
not_available
=
[
"hardswish"
,
"multiheadattention"
]
keys
=
[
"linear"
]
+
list
(
x
for
x
in
hypernetwork
.
HypernetworkModule
.
activation_dict
.
keys
()
if
x
not
in
not_available
)
def
create_hypernetwork
(
name
,
enable_sizes
,
overwrite_old
,
layer_structure
=
None
,
activation_func
=
None
,
weight_init
=
None
,
add_layer_norm
=
False
,
use_dropout
=
False
):
# Remove illegal characters from name.
...
...
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