mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 21:30:27 +00:00
Add missing support for linear activation in hypernetwork
This commit is contained in:
@@ -25,6 +25,7 @@ from statistics import stdev, mean
|
|||||||
class HypernetworkModule(torch.nn.Module):
|
class HypernetworkModule(torch.nn.Module):
|
||||||
multiplier = 1.0
|
multiplier = 1.0
|
||||||
activation_dict = {
|
activation_dict = {
|
||||||
|
"linear": torch.nn.Identity,
|
||||||
"relu": torch.nn.ReLU,
|
"relu": torch.nn.ReLU,
|
||||||
"leakyrelu": torch.nn.LeakyReLU,
|
"leakyrelu": torch.nn.LeakyReLU,
|
||||||
"elu": torch.nn.ELU,
|
"elu": torch.nn.ELU,
|
||||||
|
Reference in New Issue
Block a user