albarji / neural-style-docker

A dockerized version of neural style transfer algorithms
MIT License
112 stars 34 forks source link

directory @ error/blob.c/OpenBlob/2712 #32

Open rav0rmat opened 3 years ago

rav0rmat commented 3 years ago

Hello, using the chen-schmidt algoritm I sometimes get the following error

Segmentation fault (core dumped) convert: unable to open image /tmp/tmpf6s38rl5/rgb_stylized.png': No such file or directory @ error/blob.c/OpenBlob/2712. convert: no images definedinfo:' @ error/convert.c/ConvertImageCommand/3210.

bartman081523 commented 3 years ago

@rav0rmat

mkdir images
mkdir images/content
mkdir images/styles
mkdir images/results

Put your styles in images/styles and your content in image/content/ The cd is important (and the reason the images are not found) The $(pwd):/images attaches the current working dir (pwd) to the folder /images in the docker machine.

cd images nvidia-docker run --rm -v $(pwd):/images albarji/neural-style --content content/somecontent.png --style styles/somestyle.png --output results