Rosinality stylegan fix

This commit is contained in:
James Betker 2020-12-18 09:50:41 -07:00
parent d875ca8342
commit 209332292a

View File

@ -33,7 +33,7 @@ def fused_leaky_relu(input, bias=None, negative_slope=0.2, scale=2 ** 0.5):
rest_dim = [1] * (input.ndim - bias.ndim - 1)
return (
F.leaky_relu(
input + bias.view(1, bias.shape[0], *rest_dim), negative_slope=0.2
input + bias.view(1, bias.shape[0], *rest_dim), negative_slope=negative_slope
)
* scale
)