From 93e9970edef868f330859f80d3f3f204fd62814e Mon Sep 17 00:00:00 2001 From: weishengyu Date: Sun, 15 May 2022 17:25:56 +0000 Subject: [PATCH] dbg --- ppcls/configs/StrategySearch/person.yaml | 2 +- tools/search_strategy.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ppcls/configs/StrategySearch/person.yaml b/ppcls/configs/StrategySearch/person.yaml index bd1c8181..996a8ac8 100644 --- a/ppcls/configs/StrategySearch/person.yaml +++ b/ppcls/configs/StrategySearch/person.yaml @@ -1,7 +1,7 @@ base_config_file: ppcls/configs/cls_demo/person/PPLCNet/PPLCNet_x1_0.yaml distill_config_file: ppcls/configs/cls_demo/person/Distillation/PPLCNet_x1_0_distillation.yaml -gpus: 0,1,2,3,4,5,6,7 +gpus: 0,1,2,3 output_dir: output/search_person search_dict: lrs: diff --git a/tools/search_strategy.py b/tools/search_strategy.py index 1c2d0e77..e3b85b13 100644 --- a/tools/search_strategy.py +++ b/tools/search_strategy.py @@ -94,9 +94,9 @@ def search_strategy(): v = final_replace[k] base_program[i] = base_program[i].replace(k, v) - subprocess.Popen(base_program) - subprocess.communicate() print(all_results, base_program) + process = subprocess.Popen(base_program) + process.communicate() if __name__ == '__main__': -- GitLab