From e63b249a9d06346755b0b2389df68a09ed93d17f Mon Sep 17 00:00:00 2001 From: sungmanc Date: Wed, 12 Oct 2022 13:29:47 +0900 Subject: [PATCH 1/3] minor update recipe for classification enable randomseed, deterministic --- recipes/stages/classification/train.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/stages/classification/train.yaml b/recipes/stages/classification/train.yaml index 7e8246ea..f697db5a 100644 --- a/recipes/stages/classification/train.yaml +++ b/recipes/stages/classification/train.yaml @@ -1,4 +1,5 @@ _base_: [ + '../_base_/default.py', '../_base_/logs/tensorboard_logger.py', '../_base_/optimizers/sgd.py', '../_base_/runners/epoch_runner_cancel.py', From 088e01cbb0199043f9795af842a11f6e033232b8 Mon Sep 17 00:00:00 2001 From: sungmanc Date: Mon, 17 Oct 2022 12:41:36 +0900 Subject: [PATCH 2/3] enable multi-batch validation for detection --- mpa/det/trainer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mpa/det/trainer.py b/mpa/det/trainer.py index cfcdd186..52c7531a 100644 --- a/mpa/det/trainer.py +++ b/mpa/det/trainer.py @@ -69,6 +69,7 @@ def run(self, model_cfg, model_ckpt, data_cfg, **kwargs): # Data datasets = [build_dataset(cfg.data.train)] + cfg.data.val.samples_per_gpu = cfg.data.samples_per_gpu if hasattr(cfg, 'hparams'): if cfg.hparams.get('adaptive_anchor', False): From d2acdfd3cf38f8811932ab748ac7224428104fcf Mon Sep 17 00:00:00 2001 From: sungmanc Date: Tue, 18 Oct 2022 15:48:19 +0900 Subject: [PATCH 3/3] edit val batch if there is noconfig for train batch --- mpa/det/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpa/det/trainer.py b/mpa/det/trainer.py index 52c7531a..5c36cf20 100644 --- a/mpa/det/trainer.py +++ b/mpa/det/trainer.py @@ -69,7 +69,7 @@ def run(self, model_cfg, model_ckpt, data_cfg, **kwargs): # Data datasets = [build_dataset(cfg.data.train)] - cfg.data.val.samples_per_gpu = cfg.data.samples_per_gpu + cfg.data.val.samples_per_gpu = cfg.data.get('samples_per_gpu', 1) if hasattr(cfg, 'hparams'): if cfg.hparams.get('adaptive_anchor', False):