[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-28 10:56:26 +03:00
parent bab395afc7
commit fd4b04d186

@ -1697,7 +1697,7 @@ def kernel_27():
p.wait() p.wait()
assert p.returncode == 0 assert p.returncode == 0
assert os.system(r''' with subprocess.Popen('''
cd /kaggle/working/AlphaPose && \ cd /kaggle/working/AlphaPose && \
python3 \ python3 \
scripts/demo_inference.py \ scripts/demo_inference.py \
@ -1705,4 +1705,7 @@ def kernel_27():
--checkpoint pretrained_models/fast_res50_256x192.pth \ --checkpoint pretrained_models/fast_res50_256x192.pth \
--video %s \ --video %s \
--outdir %s --outdir %s
''' % (t4, t2)) == 0 ''' % (t4, t2), stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
pprint.pprint(p.communicate())
p.wait()
assert p.returncode == 0