aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hypernetworks/hypernetwork.py
diff options
context:
space:
mode:
authorbenkyoujouzu <benkyoujouzu@gmail.com>2022-10-27 05:00:47 +0000
committerbenkyoujouzu <benkyoujouzu@gmail.com>2022-10-28 04:54:59 +0000
commitb2a8b263b2f09bd772f75502c5a83656580f34ec (patch)
treeb77d2e8327dc4713135161f7a5b2adb51388404c /modules/hypernetworks/hypernetwork.py
parent737eb28faca8be2bb996ee0930ec77d1f7ebd939 (diff)
downloadstable-diffusion-webui-gfx803-b2a8b263b2f09bd772f75502c5a83656580f34ec.tar.gz
stable-diffusion-webui-gfx803-b2a8b263b2f09bd772f75502c5a83656580f34ec.tar.bz2
stable-diffusion-webui-gfx803-b2a8b263b2f09bd772f75502c5a83656580f34ec.zip
Add missing support for linear activation in hypernetwork
Diffstat (limited to 'modules/hypernetworks/hypernetwork.py')
-rw-r--r--modules/hypernetworks/hypernetwork.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py
index 8113b35b..87cf3cf3 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -25,6 +25,7 @@ from statistics import stdev, mean
class HypernetworkModule(torch.nn.Module):
multiplier = 1.0
activation_dict = {
+ "linear": torch.nn.Identity,
"relu": torch.nn.ReLU,
"leakyrelu": torch.nn.LeakyReLU,
"elu": torch.nn.ELU,