summaryrefslogtreecommitdiff
path: root/utils/dataset.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-23 00:47:46 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-23 00:47:46 +0800
commitafe615408c4003a513811d900fe3edd119a735a5 (patch)
tree7ab780ab400d3a768a52ab1446884d05f04e8119 /utils/dataset.py
parentc0c8299354bd41bfd668ff0fb3edb5997f590c5d (diff)
parenta040400d7caa267d4bfbe8e5520568806f92b3d4 (diff)
Merge branch 'python3.8' into python3.7
# Conflicts: # models/model.py
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