Skip to content

Commit

Permalink
[Fix] fix ut for bmn and bsn (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
cir7 authored and ly015 committed Oct 14, 2022
1 parent d675cad commit da65bdf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/models/localizers/test_bmn.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_localization_data_sample():
@pytest.mark.skipif(platform.system() == 'Windows', reason='Windows mem limit')
def test_bmn_loss():
model_cfg = get_localizer_cfg(
'bmn/bmn_400x100_2x8_9e_activitynet_feature.py')
'bmn/bmn_2xb8-400x100-9e_activitynet-feature.py')

if 0 and torch.cuda.is_available():
raw_feature = [torch.rand(400, 100).cuda()]
Expand All @@ -53,7 +53,7 @@ def test_bmn_loss():
@pytest.mark.skipif(platform.system() == 'Windows', reason='Windows mem limit')
def test_bmn_predict():
model_cfg = get_localizer_cfg(
'bmn/bmn_400x100_2x8_9e_activitynet_feature.py')
'bmn/bmn_2xb8-400x100-9e_activitynet-feature.py')

if 0 and torch.cuda.is_available():
localizer_bmn = MODELS.build(model_cfg.model).cuda()
Expand All @@ -73,7 +73,7 @@ def test_bmn_predict():
@pytest.mark.skipif(platform.system() == 'Windows', reason='Windows mem limit')
def test_bmn_tensor():
model_cfg = get_localizer_cfg(
'bmn/bmn_400x100_2x8_9e_activitynet_feature.py')
'bmn/bmn_2xb8-400x100-9e_activitynet-feature.py')

if 0 and torch.cuda.is_available():
localizer_bmn = MODELS.build(model_cfg.model).cuda()
Expand Down
2 changes: 1 addition & 1 deletion tests/models/localizers/test_pem.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_localization_data_sample():
@pytest.mark.skipif(platform.system() == 'Windows', reason='Windows mem limit')
def test_pem():
model_cfg = get_localizer_cfg(
'bsn/bsn_pem_400x100_1x16_20e_activitynet_feature.py')
'bsn/bsn_pem_1xb16-400x100-20e_activitynet-feature.py')

localizer_pem = MODELS.build(model_cfg.model)
raw_features = [torch.rand(100, 32)] * 8
Expand Down
2 changes: 1 addition & 1 deletion tests/models/localizers/test_tem.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_localization_data_sample():
@pytest.mark.skipif(platform.system() == 'Windows', reason='Windows mem limit')
def test_tem():
model_cfg = get_localizer_cfg(
'bsn/bsn_tem_400x100_1x16_20e_activitynet_feature.py')
'bsn/bsn_tem_1xb16-400x100-20e_activitynet-feature.py')

localizer_tem = MODELS.build(model_cfg.model)
raw_feature = torch.rand(8, 400, 100)
Expand Down

0 comments on commit da65bdf

Please # to comment.