From d6eb34f65c23d18c7bb68b1bde5fc830e9352081 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Fri, 9 Apr 2021 12:28:49 +0000 Subject: [PATCH] fix infer --- tools/infer/predict_system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/infer/predict_system.py b/tools/infer/predict_system.py index b77c9443..ebfcd812 100755 --- a/tools/infer/predict_system.py +++ b/tools/infer/predict_system.py @@ -188,12 +188,13 @@ def main(args): if __name__ == "__main__": args = utility.parse_args() if args.use_mp: + print("12233") p_list = [] total_process_num = args.total_process_num for process_id in range(total_process_num): cmd = [sys.executable, "-u"] + sys.argv + [ - "--process_id={} ".format(process_id), - "--use_mp={} ".format(args.use_mp) + "--process_id={}".format(process_id), + "--use_mp={}".format(False) ] p = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stdout) p_list.append(p) -- GitLab