diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 14:21:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 14:21:03 +0200 |
| commit | 698e20904bcae7dbe2c8552b123d0a194d3dc90a (patch) | |
| tree | 6d4b8e1f1409709c330e200631061d12b9d67ceb | |
| parent | 3936a9968558681aff5028d28bb25dcf343c7ed9 (diff) | |
dataset
| -rw-r--r-- | run.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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): |
