From 698e20904bcae7dbe2c8552b123d0a194d3dc90a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 14:21:03 +0200 Subject: dataset --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'run.py') diff --git a/run.py b/run.py index ed036a0..6e176f4 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,7 @@ #!/usr/bin/env python2.7 import os +from subprocess import call import sys import getopt import numpy @@ -201,7 +202,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint writer.close() if endpoint is not None: - os.system(["curl", + call(["curl", "-X", "POST", "-F", "module=morph", "-F", "activity=morph", @@ -210,7 +211,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint "-F", "datatype=video", "-F", "file=@" + outputPath, endpoint - ]); + ]) def tensor_to_image(np_val): -- cgit v1.2.3-70-g09d2