summaryrefslogtreecommitdiff
path: root/utils/dataset.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-04-03 23:07:23 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-04-03 23:07:23 +0800
commit258efcafe4d34ed5ffeebcaab9389f75a17e4717 (patch)
tree0f4ffe75990b63b8e17956eeec269e3589852769 /utils/dataset.py
parent4049566103a00aa6d5a0b1f73569bdc5435714ca (diff)
parentf6f133fa7b926ce0c7d28bbf0ba4de41b3708d4a (diff)
Merge branch 'disentangling_only' into disentangling_only_py3.8
# Conflicts: # models/model.py
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 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]'