Skip to content

Commit

Permalink
fix the bug mentioned in Issue mli0603#8
Browse files Browse the repository at this point in the history
  • Loading branch information
DeH40 committed Jan 14, 2022
1 parent f07b1ee commit 4761da9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/sttr.py
Expand Up @@ -56,6 +56,9 @@ def _disable_batchnorm_tracking(self):
for m in self.modules():
if isinstance(m, nn.BatchNorm2d):
m.track_running_stats = False
# fix the bug mentioned in https://github.com/mli0603/stereo-transformer/issues/8
m.running_mean = None
m.running_var = None

def _relu_inplace(self):
"""
Expand Down

0 comments on commit 4761da9

Please sign in to comment.