mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-06 01:02:02 -08:00
Merge pull request #3717 from benkyoujouzu/master
Add missing support for linear activation in hypernetwork
This commit is contained in:
commit
d3b4b9d7ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue