diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:11:15 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-10 14:11:15 +0800 |
commit | f2f7713efa03a877bc96ced37314b4c4a6dc1963 (patch) | |
tree | 12da1b5337d1fde51be523cb3b19a9df44d84982 /utils | |
parent | 786d66d47c77250dd8d9cb11b6be710ce18a50fb (diff) | |
parent | 1b8d1614168ce6590c5e029c7f1007ac9b17048c (diff) |
Merge branch 'master' into data_parallel
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 c487988..387c211 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]' |