From 90c7255c4afacdd9e6e15bc2ccfcdb0a13e0cf64 Mon Sep 17 00:00:00 2001 From: LielinJiang <50691816+LielinJiang@users.noreply.github.com> Date: Fri, 6 Mar 2020 17:24:29 +0800 Subject: [PATCH] Fix oom bug in image classification (#4372) * fix oom bug * algin comment --- PaddleCV/image_classification/utils/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PaddleCV/image_classification/utils/utility.py b/PaddleCV/image_classification/utils/utility.py index 46de7204..45c85102 100644 --- a/PaddleCV/image_classification/utils/utility.py +++ b/PaddleCV/image_classification/utils/utility.py @@ -131,7 +131,7 @@ def parse_args(): add_arg('use_mixup', bool, False, "Whether to use mixup") add_arg('mixup_alpha', float, 0.2, "The value of mixup_alpha") add_arg('reader_thread', int, 8, "The number of multi thread reader") - add_arg('reader_buf_size', int, 2048, "The buf size of multi thread reader") + add_arg('reader_buf_size', int, 8, "The buf size of multi thread reader") add_arg('interpolation', int, None, "The interpolation mode") add_arg('use_aa', bool, False, "Whether to use auto augment") parser.add_argument('--image_mean', nargs='+', type=float, default=[0.485, 0.456, 0.406], help="The mean of input image data") -- GitLab