Last active
October 2, 2022 22:39
-
-
Save farukcankaya/8c132ae419fd188526ea72cc18b192d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def prepare_validation_loader(cfg): | |
val_cfg = cfg.clone() | |
val_cfg.defrost() | |
val_cfg.DATASETS.TRAIN = val_cfg.DATASETS.TEST | |
val_cfg.freeze() | |
val_mapper = DatasetMapper(val_cfg, True, augmentations=[]) | |
return iter(build_detection_train_loader(val_cfg, mapper=val_mapper)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment