Public | Automated Build

Last pushed: a year ago
Short Description
Fully automatic optical flow based image morphing implemented in Torch
Full Description

torch-warp

This repository contains a torch implementation for automatically applying optical flow deformations to pairs of images in order to morph between images. The optical flow calculation and loading code is from manuelruder/artistic-videos, and is based on DeepFlow. Theoretically, you could drop in another optical flow program which outputs .flo files in the Middlebury format.

This process is inspired by Patrick Feaster's post on Animating Historical Photographs With Image Morphing.

My blog post about this process: Animating Stereograms with Optical Flow Morphing

Examples

Dependencies

  • torch7
  • DeepFlow and DeepMatching binaries in the current directory, as deepflow2-static and deepmatching-static

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 to download an animated GIF at low resolution and run it through the morphing process.

If you sign up for the NYPL Digital Collections API, you can use your API token with the included scripts to work with high-resolution original images. The nypl_recrop.rb script takes a Stereogranimator image ID as an argument and reads the API token from the NYPL_API_TOKEN environment variable, and attempts to apply the Stereogranimator's crop values to the original image. The run-stereogranimator-hi-res.sh script uses this process and passes the high-resolution cropped images to run-torchwarp.sh. You can also pass the NYPL_API_TOKEN environment variable in your docker run command.

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 as well, in order to transfer images back and forth.
  • Use the scripts as described above inside the Docker container's shell.

I've also made this repository an automated build on Docker Hub: ryanfb/torch-warp

Docker Pull Command
Owner
ryanfb
Source Repository

Comments (2)
ryanfb
a year ago

Hi Maile,

That's the correct syntax, but it looks like the problem is you don't have those files inside the container itself.

Docker volume mapping is a little tricky sometimes. As an example, if I have a directory named /Users/ryan/images on my Docker host containing images I want to process, I would run this with:

docker run -t -i -v /Users/ryan/images/:/images/ ryanfb/torch-warp /bin/bash

This maps that host directory to /images/ inside the container. So then to run the warp, with your example filenames in my image directory I'd use:

./run-torchwarp.sh /images/NYPL-Stereogram-Oregon-Loggers

It would then produce morphed_NYPL-Stereogram-Oregon-Loggers.gif in the torchwarp working directory, which I could copy back to the host with:

cp morphed_NYPL-Stereogram-Oregon-Loggers.gif /images/

Hopefully that helps, let me know if you still have issues!

mailethiesen
a year ago

Hi Ryan,

I am attempting to use torch-warp on Docker, but I'm running into some problems. I don't have much experience as a developer, but I'm in the process of learning, so I hope you can bear with me through this question.

I installed Docker and pulled in the code using the Docker Pull Command 'docker pull ryanfb/torch-warp'. Then, as you state in your blog I ran 'docker run -t -i ryanfb/torch-warp /bin/bash', it dropped me into a shell as expected.

The next part is where I get confused. The documentation states:

"For input, you need two PNG images of the same dimensions named e.g. filename_0.png andfilename_1.png. You can then run ./run-torchwarp.sh filename to run all the steps and output the morphing animation as morphed_filename.gif."

So if I have two files for example:
NYPL-Stereogram-Oregon-Loggers_0.png
NYPL-Stereogram-Oregon-Loggers_1.png

is the correct syntax:
./run-torchwarp.sh NYPL-Stereogram-Oregon-Loggers

When I run that I'm getting the following error:

"
convert.im6: unable to open image NYPL-Stereogram-Oregon-Loggers_0.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open fileNYPL-Stereogram-Oregon-Loggers_0.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined PNG24:NYPL-Stereogram-Oregon-Loggers_normalized_0.png' @ error/convert.c/ConvertImageCommand/3044. convert.im6: unable to open imageNYPL-Stereogram-Oregon-Loggers_1.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file NYPL-Stereogram-Oregon-Loggers_1.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedPNG24:NYPL-Stereogram-Oregon-Loggers_normalized_1.png' @ error/convert.c/ConvertImageCommand/3044.
0.00
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f06a064a7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f78f14bd7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.00.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.00.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.00.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.00.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.00.png' @ error/convert.c/ConvertImageCommand/3044. 0.05 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f55e5f707a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fe33d6857a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.05.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.05.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.05.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.05.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.05.png' @ error/convert.c/ConvertImageCommand/3044.
0.10
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7ff7cc8907a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fbcc0ded7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.10.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.10.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.10.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.10.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.10.png' @ error/convert.c/ConvertImageCommand/3044. 0.15 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7ff7b2c697a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f0265a257a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.15.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.15.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.15.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.15.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.15.png' @ error/convert.c/ConvertImageCommand/3044.
0.20
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7ff15987b7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f1bf379d7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.20.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.20.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.20.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.20.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.20.png' @ error/convert.c/ConvertImageCommand/3044. 0.25 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f906c7d27a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f72004f57a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.25.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.25.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.25.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.25.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.25.png' @ error/convert.c/ConvertImageCommand/3044.
0.30
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fe2b7a7f7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f2eae81d7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.30.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.30.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.30.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.30.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.30.png' @ error/convert.c/ConvertImageCommand/3044. 0.35 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fdb043717a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fbf2c86b7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.35.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.35.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.35.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.35.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.35.png' @ error/convert.c/ConvertImageCommand/3044.
0.40
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f6f68f667a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fdf7f43d7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.40.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.40.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.40.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.40.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.40.png' @ error/convert.c/ConvertImageCommand/3044. 0.45 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f91099b07a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fa7cf6257a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.45.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.45.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.45.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.45.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.45.png' @ error/convert.c/ConvertImageCommand/3044.
0.50
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f37c32017a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fd80057a7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.50.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.50.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.50.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.50.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.50.png' @ error/convert.c/ConvertImageCommand/3044. 0.55 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fe5a65627a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fc4107b87a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.55.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.55.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.55.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.55.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.55.png' @ error/convert.c/ConvertImageCommand/3044.
0.60
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f34315117a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f29cef537a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.60.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.60.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.60.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.60.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.60.png' @ error/convert.c/ConvertImageCommand/3044. 0.65 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fc2b20b77a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fab6a6dd7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.65.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.65.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.65.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.65.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.65.png' @ error/convert.c/ConvertImageCommand/3044.
0.70
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f3a6b6f27a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f8f3801f7a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.70.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.70.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.70.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.70.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.70.png' @ error/convert.c/ConvertImageCommand/3044. 0.75 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fdcb9a7f7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f61fd9837a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.75.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.75.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.75.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.75.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.75.png' @ error/convert.c/ConvertImageCommand/3044.
0.80
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fc421da67a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fc01d4d97a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.80.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.80.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.80.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.80.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.80.png' @ error/convert.c/ConvertImageCommand/3044. 0.85 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f3f7b42d7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7f8faff177a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.85.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.85.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.85.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.85.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.85.png' @ error/convert.c/ConvertImageCommand/3044.
0.90
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f35ad7667a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fcc741987a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_0.90.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_0.90.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_0.90.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_0.90.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_0.90.png' @ error/convert.c/ConvertImageCommand/3044. 0.95 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7fa71f05b7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 /root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649 stack traceback: [C]: at 0x7efcec3ac7a0 [C]: in function 'DiskFile' ./flowFileLoader.lua:15: in function 'load' torch_warp.lua:15: in function 'main' torch_warp.lua:65: in main chunk [C]: in function 'dofile' /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670 convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_0_0.95.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_0_0.95.png' @ error/png.c/ReadPNGImage/3667. convert.im6: unable to open imagewarped_NYPL-Stereogram-Oregon-Loggers_1_0.95.png': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: unable to open file warped_NYPL-Stereogram-Oregon-Loggers_1_0.95.png' @ error/png.c/ReadPNGImage/3667. convert.im6: no images definedblended_NYPL-Stereogram-Oregon-Loggers_0.95.png' @ error/convert.c/ConvertImageCommand/3044.
1.00
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/backward_1_0.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7ff4c74f77a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
/root/torch/install/bin/luajit: cannot open <NYPL-Stereogram-Oregon-Loggers/forward_0_1.flo> in mode r at /root/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7fa70f4027a0
[C]: in function 'DiskFile'
./flowFileLoader.lua:15: in function 'load'
torch_warp.lua:15: in function 'main'
torch_warp.lua:65: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_0_1.00.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_0_1.00.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: unable to open image warped_NYPL-Stereogram-Oregon-Loggers_1_1.00.png': No such file or directory @ error/blob.c/OpenBlob/2641. convert.im6: unable to open filewarped_NYPL-Stereogram-Oregon-Loggers_1_1.00.png' @ error/png.c/ReadPNGImage/3667.
convert.im6: no images defined blended_NYPL-Stereogram-Oregon-Loggers_1.00.png' @ error/convert.c/ConvertImageCommand/3044. ls: cannot access blended_NYPL-Stereogram-Oregon-Loggers_*.png: No such file or directory ls: cannot access blended_NYPL-Stereogram-Oregon-Loggers_*.png: No such file or directory convert.im6: no images definedmorphed_NYPL-Stereogram-Oregon-Loggers.gif' @ error/convert.c/ConvertImageCommand/3044."

It looks like this is a problem with ImageMagik not being able to find the file, but I don't understand where to put it. I tried to follow the 'map a host directory as a data volume set' but I'm getting stuck.

Can you help point me in the right direction?

Best,

Maile