mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
More appropriate name for se channel
This commit is contained in:
parent
db056d97e2
commit
6523e4abe4
@ -549,8 +549,8 @@ class InvertedResidual(nn.Module):
|
||||
|
||||
# Squeeze-and-excitation
|
||||
if self.has_se:
|
||||
reduce_mult = mid_chs if se_reduce_mid else in_chs
|
||||
self.se = SqueezeExcite(mid_chs, reduce_chs=max(1, int(reduce_mult * se_ratio)),
|
||||
se_base_chs = mid_chs if se_reduce_mid else in_chs
|
||||
self.se = SqueezeExcite(mid_chs, reduce_chs=max(1, int(se_base_chs * se_ratio)),
|
||||
act_fn=act_fn, gate_fn=se_gate_fn)
|
||||
|
||||
# Point-wise linear projection
|
||||
|
Loading…
x
Reference in New Issue
Block a user