Skip to content

Commit

Permalink
[Fix] Fix base tta model (#593)
Browse files Browse the repository at this point in the history
Co-authored-by: ubuntu <ubuntu@localhost.localdomain>
  • Loading branch information
HAOCHENYE and ubuntu committed Oct 11, 2022
1 parent 46add35 commit 2df5bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmengine/model/wrappers/test_time_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


@MODELS.register_module()
class BaseTTAModel:
class BaseTTAModel(nn.Module):
"""Base model for inference with test-time augmentation.
``BaseTTAModel`` is a wrapper for inference given multi-batch data.
Expand Down Expand Up @@ -74,6 +74,7 @@ class BaseTTAModel:
"""

def __init__(self, module: Union[dict, nn.Module]):
super().__init__()
if isinstance(module, nn.Module):
self.module = module
elif isinstance(module, dict):
Expand Down

0 comments on commit 2df5bc1

Please sign in to comment.