-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support of multiple test loaders in train_from_config (#1641)
* Add test loaders support (WIP) * Added test * Added docs * Pass test loaders * Update test * Move maybe_instantiate_test_loaders method to cfg_utils
- Loading branch information
Showing
5 changed files
with
197 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
defaults: | ||
- cifar10_resnet | ||
|
||
test_dataloaders: | ||
cifar10: cifar10_val | ||
cifar10_v2: cifar10_val | ||
|
||
dataset_params: | ||
train_dataloader_params: | ||
num_workers: 0 | ||
|
||
val_dataloader_params: | ||
num_workers: 0 | ||
|
||
test_dataset_params: | ||
cifar10: | ||
root: ./data/cifar10 | ||
train: False | ||
transforms: | ||
- Resize: | ||
size: 32 | ||
- ToTensor | ||
- Normalize: | ||
mean: | ||
- 0.4914 | ||
- 0.4822 | ||
- 0.4465 | ||
std: | ||
- 0.2023 | ||
- 0.1994 | ||
- 0.2010 | ||
target_transform: null | ||
download: True | ||
|
||
cifar10_v2: | ||
root: ./data/cifar10 | ||
train: False | ||
transforms: | ||
- Resize: | ||
size: 32 | ||
- ToTensor | ||
- Normalize: | ||
mean: | ||
- 0.5 | ||
- 0.5 | ||
- 0.5 | ||
std: | ||
- 0.2 | ||
- 0.2 | ||
- 0.2 | ||
target_transform: null | ||
download: True | ||
|
||
hydra: | ||
searchpath: | ||
- pkg://super_gradients.recipes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters