From 87466a7963fc337bef3619cb0c900d667c297598 Mon Sep 17 00:00:00 2001 From: wuyefeilin <30919197+wuyefeilin@users.noreply.github.com> Date: Mon, 2 Sep 2019 20:17:58 +0800 Subject: [PATCH] update check.py (#12) --- pdseg/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdseg/check.py b/pdseg/check.py index ab690fb1..34372e25 100644 --- a/pdseg/check.py +++ b/pdseg/check.py @@ -225,7 +225,7 @@ def eval_crop_size_check(max_height, max_width, min_aspectratio, max_aspectratio """ if cfg.AUG.AUG_METHOD == "stepscaling": - if max_width <= cfg.EVAL_CROP_SIZE[0] or max_height <= cfg.EVAL_CROP_SIZE[1]: + if max_width <= cfg.EVAL_CROP_SIZE[0] and max_height <= cfg.EVAL_CROP_SIZE[1]: logger.info(correct_print("EVAL_CROP_SIZE check")) else: logger.info(error_print("EVAL_CROP_SIZE check")) -- GitLab