Skip to content

Commit 9fa1c32

Browse files
committed
Use weight norm
1 parent 4555e10 commit 9fa1c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/src/models.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function ResidualBlockV1(
7878
n_big_kernels::Int=0,
7979
dropout_rate::Real=0.0f0,
8080
gn_affine::Bool=true,
81-
weight_norm::Bool=false,
81+
weight_norm::Bool=true,
8282
gn_track_stats::Bool=false,
8383
)
8484
inplanes, outplanes = mapping
@@ -127,7 +127,7 @@ function ResidualBlockV2(
127127
n_big_kernels::Int=0,
128128
dropout_rate::Real=0.0f0,
129129
gn_affine::Bool=true,
130-
weight_norm::Bool=false,
130+
weight_norm::Bool=true,
131131
gn_track_stats::Bool=false,
132132
)
133133
inplanes, outplanes = mapping
@@ -342,7 +342,7 @@ function get_model(
342342

343343
deq = if config.model_type (:SKIP, :SKIPV2)
344344
shortcut = if config.model_type == :SKIP
345-
slayers = Lux.AbstractExplicitLayer[ResidualBlockV2(config.num_channels[1] => config.num_channels[1], weight_norm=false)]
345+
slayers = Lux.AbstractExplicitLayer[ResidualBlockV2(config.num_channels[1] => config.num_channels[1], weight_norm=true)]
346346
for i in 1:(config.num_branches - 1)
347347
push!(
348348
slayers,

0 commit comments

Comments
 (0)