Skip to content

Commit

Permalink
revise unit test of swd
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoXing1996 committed Mar 9, 2023
1 parent 8b6ebd2 commit cc9d889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_metrics/test_swd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
argnames=['init_kwargs', 'preds', 'gts', 'results'],
argvalues=[
({'resolution': 32},
[np.random.rand(3, 32, 32) for _ in range(100)],
[np.random.rand(3, 32, 32) for _ in range(100)],
[16.495922580361366, 24.15413036942482, 20.325026474893093])]
[np.ones((3, 32, 32)) * i for i in range(100)],
[np.ones((3, 32, 32)) * 2 * i for i in range(100)],
[198.67430960025712, 33.72058904027052, 116.19744932026381])]
)
def test_swd(init_kwargs, preds, gts, results):
swd = SWD(**init_kwargs)
Expand Down

0 comments on commit cc9d889

Please sign in to comment.