diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:10:59 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:10:59 +0800 |
commit | 08911dcb80ecb769972c2d2659c8ad152bbeb447 (patch) | |
tree | 219eee7ae914845497a76e64ac8f3c1ac8aa1d37 /utils | |
parent | 2095fe17b890df5eabf33068eb8d8cdd7634e746 (diff) | |
parent | 1b8d1614168ce6590c5e029c7f1007ac9b17048c (diff) |
Merge branch 'master' into python3.8
# Conflicts:
# models/model.py
Diffstat (limited to 'utils')
-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]' |