Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to run the container #25

Open
mben0 opened this issue Dec 29, 2022 · 1 comment
Open

Failing to run the container #25

mben0 opened this issue Dec 29, 2022 · 1 comment

Comments

@mben0
Copy link

mben0 commented Dec 29, 2022

After pulling the image and running the container:

sudo docker run -v $PWD/data:/data:Z asjackson/vrn /runner/run.sh /data/turing.jpg

I get the following output in terminal:

Please wait. Your image is being processed.
convert: unable to open image /data/turing.jpg': No such file or directory @ error/blob.c/OpenBlob/2882. convert: no images defined /tmp//turing.jpg' @ error/convert.c/ConvertImageCommand/3235.
Initialising python libs...
Initialising detector...
/root/usr/local/torch/install/bin/luajit: /root/usr/local/torch/install/share/lua/5.1/image/init.lua:367: /tmp//turing.jpg: No such file or directory
stack traceback:
[C]: in function 'error'
/root/usr/local/torch/install/share/lua/5.1/image/init.lua:367: in function 'load'
main.lua:33: in main chunk
[C]: in function 'dofile'
...ocal/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406460
rm: cannot remove '/tmp//turing.jpg': No such file or directory
The face detector failed to find your face.

Thank you

@JaredTamana
Copy link

JaredTamana commented Feb 16, 2023

As you can see in the log:

/tmp//turing.jpg: No such file or directory

In your command

sudo docker run -v $PWD/data:/data:Z asjackson/vrn /runner/run.sh /data/turing.jpg

You have just straight copied what was in the readme. The readme says turing.jpg is included, but it is not. If you continue to read the readme: "An example image of Alan Turing is available in the folder data, this needs to be bind mounted to /data in the container"

So, sudo cp path/to/yourimage.jpg data/.

Then, when running the program, ensure you substitute /data/turing.jpg for /data/[the name of your file goes here]

A little bit of self-education as to what you're running in your commands will go a long way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants