summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process.sh12
-rw-r--r--run.py1
2 files changed, 13 insertions, 0 deletions
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