summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-21 23:47:52 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-21 23:47:52 +0800
commitc0c8299354bd41bfd668ff0fb3edb5997f590c5d (patch)
tree25502d76a218a71ad5c2d51001876b08d734ee47 /test
parent42847b721a99350e1eed423dce99574c584d97ef (diff)
parentd750dd9dafe3cda3b1331ad2bfecb53c8c2b1267 (diff)
Merge branch 'python3.8' into python3.7
# Conflicts: # utils/configuration.py
Diffstat (limited to 'test')
-rw-r--r--test/model.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/model.py b/test/model.py
index f7fc57e..6fbcf00 100644
--- a/test/model.py
+++ b/test/model.py
@@ -14,12 +14,12 @@ def test_default_signature():
model._parse_dataloader_config(casiab, conf['dataloader'])
assert model._log_name == os.path.join(
'runs', 'logs', 'RGB-GaitPart_80000_64_128_128_64_1_2_4_True_True_32_5_'
- '3_3_3_3_3_2_1_1_1_1_1_0_2_3_4_16_256_0.2_0.0001_0.9_'
- '0.999_0.001_500_0.9_CASIA-B_74_30_15_3_64_32_8_16')
+ '3_3_3_3_3_2_1_1_1_1_1_0_2_3_4_16_256_0.2_0.0001_0.001_'
+ '500_0.9_CASIA-B_74_30_15_3_64_32_8_16')
assert model._checkpoint_sig == ('RGB-GaitPart_0_80000_64_128_128_64_1_2_4_'
'True_True_32_5_3_3_3_3_3_2_1_1_1_1_1_0_2_'
- '3_4_16_256_0.2_0.0001_0.9_0.999_0.001_'
- '500_0.9_CASIA-B_74_30_15_3_64_32_8_16')
+ '3_4_16_256_0.2_0.0001_0.001_500_0.9_'
+ 'CASIA-B_74_30_15_3_64_32_8_16')
def test_default_signature_with_selector():
@@ -31,11 +31,10 @@ def test_default_signature_with_selector():
model._parse_dataloader_config(casiab, conf['dataloader'])
assert model._log_name == os.path.join(
'runs', 'logs', 'RGB-GaitPart_80000_64_128_128_64_1_2_4_True_True_32_5_'
- '3_3_3_3_3_2_1_1_1_1_1_0_2_3_4_16_256_0.2_0.0001_0.9_'
- '0.999_0.001_500_0.9_CASIA-B_74_30_15_3_64_32_bg-0\\d_'
- 'nm-0\\d_8_16')
+ '3_3_3_3_3_2_1_1_1_1_1_0_2_3_4_16_256_0.2_0.0001_0.001_'
+ '500_0.9_CASIA-B_74_30_15_3_64_32_bg-0\\d_nm-0\\d_8_16')
assert model._checkpoint_sig == ('RGB-GaitPart_0_80000_64_128_128_64_1_2_4_'
'True_True_32_5_3_3_3_3_3_2_1_1_1_1_1_0_2_'
- '3_4_16_256_0.2_0.0001_0.9_0.999_0.001_'
- '500_0.9_CASIA-B_74_30_15_3_64_32_bg-0\\d_'
- 'nm-0\\d_8_16')
+ '3_4_16_256_0.2_0.0001_0.001_500_0.9_'
+ 'CASIA-B_74_30_15_3_64_32_bg-0\\d_nm-0\\d_'
+ '8_16')