summaryrefslogtreecommitdiff
path: root/utils/dataset.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-23 00:41:30 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-23 00:41:30 +0800
commitf8fe82326479d4ea62d7da3dd8f25f1c09cf11bc (patch)
treeb8cd0414a86eb8be8660e76bfca4764b5766ce59 /utils/dataset.py
parentd750dd9dafe3cda3b1331ad2bfecb53c8c2b1267 (diff)
parentf3321b6782aff20df2c029239cc0f8b9a59ffde7 (diff)
Merge branch 'master' into python3.8
Diffstat (limited to 'utils/dataset.py')
-rw-r--r--utils/dataset.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/dataset.py b/utils/dataset.py
index ea678fb..6b2a991 100644
--- a/utils/dataset.py
+++ b/utils/dataset.py
@@ -201,6 +201,9 @@ class CASIAB(data.Dataset):
self._cached_clips[clip_name] = clip
else: # Load cache
cached_clip = self._cached_clips[clip_name]
+ # Return full clips while evaluating
+ if not self._is_train:
+ return cached_clip
cached_clip_frame_names \
= self._cached_clips_frame_names[clip_path]
# Index the original clip via sampled frame names