diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-23 10:26:29 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-23 10:26:29 +0800 |
commit | c967a2ac88e075082473f3ca219660fa12cf67d1 (patch) | |
tree | ce03cb3c9ad0102aa5057a6c8b22e6f164af3c35 /models/model.py | |
parent | b6e5972b64cc61fc967cf3d098fc629d781adce4 (diff) |
Fix indexing bugs in validation dataset selector
Diffstat (limited to 'models/model.py')
-rw-r--r-- | models/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/model.py b/models/model.py index 766e513..17716ad 100644 --- a/models/model.py +++ b/models/model.py @@ -152,7 +152,8 @@ class Model: train_size = dataset_config.get('train_size', 74) val_dataset_config['train_size'] = train_size + val_size val_dataset_config['selector']['classes'] = ClipClasses({ - str(c).zfill(3) for c in range(train_size, train_size + val_size) + str(c).zfill(3) + for c in range(train_size + 1, train_size + val_size + 1) }) val_dataset = self._parse_dataset_config(val_dataset_config) val_dataloader = iter(self._parse_dataloader_config( |