Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into master-patched
Browse files Browse the repository at this point in the history
  • Loading branch information
xwang233 committed Aug 7, 2024
2 parents f354fc9 + e9ef942 commit 3a8ddc5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions timm/models/efficientformer_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from ._registry import generate_default_cfgs, register_model


__all__ = ['EfficientFormerV2']

EfficientFormer_width = {
'L': (40, 80, 192, 384), # 26m 83.3% 6attn
'S2': (32, 64, 144, 288), # 12m 81.6% 4attn dp0.02
Expand Down
1 change: 1 addition & 0 deletions timm/models/fastvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ._manipulate import checkpoint_seq
from ._registry import register_model, generate_default_cfgs

__all__ = ['FastVit']

def num_groups(group_size, channels):
if not group_size: # 0 or None
Expand Down
3 changes: 3 additions & 0 deletions timm/models/hiera.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
from ._features_fx import register_notrace_function


__all__ = ['Hiera']


def conv_nd(n: int) -> Type[nn.Module]:
"""
Returns a conv with nd (e.g., Conv2d for n=2). Work up to n=3.
Expand Down
2 changes: 2 additions & 0 deletions timm/models/nextvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from ._manipulate import checkpoint_seq
from ._registry import generate_default_cfgs, register_model

__all__ = ['NextViT']


def merge_pre_bn(module, pre_bn_1, pre_bn_2=None):
""" Merge pre BN to reduce inference runtime.
Expand Down

0 comments on commit 3a8ddc5

Please sign in to comment.