diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 11:46:18 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 11:46:18 +0800 |
commit | d7471a613fe1c8c4d3826648de705a65403ed6c2 (patch) | |
tree | 692a8b54d6cc01aa82a0d906d5d89c3b7ba6a736 | |
parent | db7edf86af56aa76eaaa2b30f3b6568e401c7ecd (diff) | |
parent | bbc2d84e59749e6fa1d87ffcc738419ff19a447e (diff) |
Merge branch 'python3.8' into python3.7
# Conflicts:
# models/model.py
-rw-r--r-- | models/model.py | 2 | ||||
-rw-r--r-- | utils/dataset.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py index 7cf6ed0..7e4edaf 100644 --- a/models/model.py +++ b/models/model.py @@ -312,7 +312,7 @@ class Model: self, dataset_config: Dict, dataloader_config: Dict, - ) -> Tuple[DataLoader, Dict[str: DataLoader]]: + ) -> Tuple[DataLoader, Dict[str, DataLoader]]: dataset_name = dataset_config.get('name', 'CASIA-B') if dataset_name == 'CASIA-B': gallery_dataset = self._parse_dataset_config( diff --git a/utils/dataset.py b/utils/dataset.py index e691157..ea678fb 100644 --- a/utils/dataset.py +++ b/utils/dataset.py @@ -75,7 +75,7 @@ class CASIAB(data.Dataset): self.views: np.ndarray[np.str_] # Labels, classes, conditions and views in dataset, # set of three attributes above - self.metadata = Dict[str, List[np.int64, str]] + self.metadata: Dict[str, List[np.int64, str]] # Dictionaries for indexing frames and frame names by clip name # and chip path when cache is on |