Skip to content

Commit

Permalink
[F] Update test for BACKBONES.build({name: timm_resnet50})
Browse files Browse the repository at this point in the history
  • Loading branch information
kunkunlin1221 committed Dec 24, 2024
1 parent 9a125a8 commit 7edf8f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/tools/test_calflops.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@


def test_calcualte_flops():
timm_create = BACKBONES.build({'name': 'timm_resnet50'})
model = timm_create(model_name='resnet50')
model = BACKBONES.build({'name': 'timm_resnet50'})
flops, macs, params = calculate_flops(model, (1, 3, 224, 224))
assert flops == '8.21 GFLOPS'
assert macs == '4.09 GMACs'
Expand Down

0 comments on commit 7edf8f7

Please sign in to comment.