diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:11:22 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:11:22 +0800 |
commit | 3d8fc322623ba61610fd206b9f52b406e85cae61 (patch) | |
tree | 3920db5f0e6d57ce03c28ed1583d1d90e1490473 /utils/dataset.py | |
parent | 75ccc59e70ab5cf4ab1e87d9bbb44c2fda1ef510 (diff) | |
parent | 08911dcb80ecb769972c2d2659c8ad152bbeb447 (diff) |
Merge branch 'python3.8' into data_parallel_py3.8
Diffstat (limited to 'utils/dataset.py')
-rw-r--r-- | utils/dataset.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/dataset.py b/utils/dataset.py index 72cf050..41e2f1e 100644 --- a/utils/dataset.py +++ b/utils/dataset.py @@ -111,9 +111,9 @@ class CASIAB(data.Dataset): # in Bag #2 condition from 90 degree angle classes, conditions, views = [], [], [] if selector: - selected_classes = selector.pop('classes', None) - selected_conditions = selector.pop('conditions', None) - selected_views = selector.pop('views', None) + selected_classes = selector.get('classes', None) + selected_conditions = selector.get('conditions', None) + selected_views = selector.get('views', None) class_regex = r'\d{3}' condition_regex = r'(nm|bg|cl)-0[0-6]' |