summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-10 14:11:07 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-10 14:11:07 +0800
commit39fb3e19601aaccd572ea023b117543b9d791b56 (patch)
treef4a65c882b7f1e4c0a28f18c6c237abd5f74c4be /utils
parent43e6d3cd3527b8211d593c051c0decb328b58a3a (diff)
parent08911dcb80ecb769972c2d2659c8ad152bbeb447 (diff)
Merge branch 'python3.8' into python3.7
Diffstat (limited to 'utils')
-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]'