From c48c5c5ee5cf18b741be964777e48334d58fc0bb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Jun 2018 15:48:23 +0200 Subject: process script --- process.sh | 12 ++++++++++++ run.py | 1 + 2 files changed, 13 insertions(+) create mode 100644 process.sh diff --git a/process.sh b/process.sh new file mode 100644 index 0000000..0e71d5f --- /dev/null +++ b/process.sh @@ -0,0 +1,12 @@ +function process() { + sequence="$1" + rm renders/* + python run.py --first "../pix2pixhd/sequences/$sequence/frame_00300.png" --second "../pix2pixhd/sequences/$sequence/frame_6300.png" --steps 128 --video-out "morph_${sequence}.mp4" + scp renders/* jules@lmno:asdf/neural/morph/ +} + +process a_walk_around_canary_wharf_spring_afternoon_in_london +process dji_phantom_3_drone_flying_the_blue_ridge_mountains_ +process hotel_president_3d_architectural_visualization +process london_walk_around_the_roof_garden_of_crossrail_place_in_canary_wharf +process wood diff --git a/run.py b/run.py index 62e822e..046473a 100644 --- a/run.py +++ b/run.py @@ -93,6 +93,7 @@ else: process(moduleNetwork, tensorInputFirst, tensorInputSecond, tensorOutput) PIL.Image.fromarray((numpy.rollaxis(tensorOutput.clamp(0.0, 1.0).numpy(), 0, 3)[:,:,::-1] * 255.0).astype(numpy.uint8)).save(arguments_strOut) else: + print("{} => {}".format(arguments_strFirst, arguments_strSecond)) inputFirst = PIL.Image.open(arguments_strFirst) inputSecond = PIL.Image.open(arguments_strSecond) tensorInputFirst = numpy.rollaxis(numpy.asarray(inputFirst)[:,:,::-1], 2, 0).astype(numpy.float32) / 255.0 -- cgit v1.2.3-70-g09d2