cysmith / neural-style-tf

TensorFlow (Python API) implementation of Neural Style
GNU General Public License v3.0
3.11k stars 831 forks source link

Trying to style few seconds of footage. Computing optical flow [CPU]. This will take a while... #68

Open ddilanchi opened 5 years ago

ddilanchi commented 5 years ago

It sure is taking a while. Is this always meant to run on CPU or have i made a mistake?

Been running on an I7-4770K for several hours now.

used this command:

bash stylize_video.sh ./video_input/video1.mp4 ./styles/pic2.jpg --device /gpu:0 --style_weight 200

glennamarshall commented 5 years ago

does it run on GPU for single images ? I'm about to start some video tests myself..

glennamarshall commented 5 years ago

i looked at the bash file - looks like we don't have a choice..

echo "Computing optical flow [CPU]. This will take a while..." cd ./video_input bash make-opt-flow.sh ${contentfilename}/frame%04d.ppm ${content_filename} cd ..

echo "Rendering stylized video frames [CPU & GPU]. This will take a while..."