diff options
| author | Ryan Baumann <ryan.baumann@gmail.com> | 2016-07-29 15:42:20 -0400 |
|---|---|---|
| committer | Ryan Baumann <ryan.baumann@gmail.com> | 2016-07-29 15:42:20 -0400 |
| commit | 804a95450a6abaa698d526495d98327a22e69d92 (patch) | |
| tree | ae43b53638da178ca75bed2d33aa6e0b4c389248 | |
| parent | 200496c4216ab08824851c15632b1a1db6e76b31 (diff) | |
Add Dockerfile
| -rw-r--r-- | Dockerfile | 12 | ||||
| -rw-r--r-- | README.md | 10 |
2 files changed, 20 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..23db38a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM teeps/cuda7.5-art-vid +MAINTAINER Ryan Baumann <ryan.baumann@gmail.com> + +RUN apt-get install -y bc + +ADD . /root/torch-warp + +RUN cp -v *-static /root/torch-warp/ + +WORKDIR /root/torch-warp + +RUN cd consistencyChecker && make @@ -7,10 +7,16 @@ This repository contains a torch implementation for applying optical flow deform * torch7 * DeepFlow and DeepMatching binaries in the current directory, as `deepflow2-static` and `deepmatching-static` -I had very little luck getting DeepFlow to work on OS X, so I'm using a Docker image to run this. - ## Usage For input, you need two PNG images of the same dimensions named e.g. `filename_0.png` and `filename_1.png`. You can then run `./run-torchwarp.sh filename` to run all the steps and output the morphing animation as `morphed_filename.gif`. You can also use `./run-stereogranimator.sh ID` with an image ID from [NYPL's Stereogranimator](http://stereo.nypl.org/) to download an animated GIF and run it through the morphing process. + +## Docker Usage + +I had very little luck getting DeepFlow to work on OS X, so I'm using Docker to run this with the included `Dockerfile`. + +* Build the Docker image with `docker build -t torch-warp .` +* Run the build with `docker run -t -i torch-warp /bin/bash`. You may want to [map a host directory as a data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/mount-a-host-directory-as-a-data-volume) as well, in order to transfer images back and forth. +* Use the scripts as described above inside the Docker container's shell. |
