summaryrefslogtreecommitdiff
path: root/utils/dataset.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-10 14:10:24 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-10 14:10:24 +0800
commit1b8d1614168ce6590c5e029c7f1007ac9b17048c (patch)
treedd0941ab0efbab409f684308d8fca27db65730dc /utils/dataset.py
parentad78ce7f8d80f3a4ccd72e93ab3244f130b5ec1f (diff)
Bug fixes
1. Resolve reference problems when parsing dataset selectors 2. Transform gallery using different models
Diffstat (limited to 'utils/dataset.py')
-rw-r--r--utils/dataset.py6
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]'