From 9739d5e40a74c50c7c092306176bf5664abbf601 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Wed, 28 Jul 2021 10:58:55 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index c85618b..79ae644 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1699,7 +1699,7 @@ def kernel_27(): p.wait() assert p.returncode == 0 - with subprocess.Popen(''' + t6 = ''' cd /kaggle/working/AlphaPose && \ python3 \ scripts/demo_inference.py \ @@ -1707,7 +1707,9 @@ def kernel_27(): --checkpoint pretrained_models/fast_res50_256x192.pth \ --video %s \ --outdir %s - ''' % (t4, t2), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p: + ''' % (t4, t2) + pprint.pprint([t4, t2, t6]) + with subprocess.Popen(, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p: pprint.pprint(p.communicate()) p.wait() assert p.returncode == 0