manuelruder / artistic-videos

Torch implementation for the paper "Artistic style transfer for videos"
Other
1.75k stars 252 forks source link

write_png_file png_create_write_struct failed #51

Open AniLdn opened 7 years ago

AniLdn commented 7 years ago

Hi I am trying to run the Artistic - Videos code to run on my mac.

After the complete compilation i get the following error

__Iteration 1800 / 2000

Content 1 loss: 3857077.500000
Style 1 loss: 4100.569916 Style 2 _loss: 93125.927734
Style 3 loss: 116407.360840
Style 4 loss: 786244.873047
Style 5 loss: 8864.884949 Total loss: 4865821.116486
Iteration 1900 / 2000
Content 1 loss: 3846950.937500
Style 1 loss: 3968.808746 Style 2 loss: 90534.338379
Style 3 loss: 114340.576172
Style 4 loss: 778716.308594
Style 5 loss: 8792.427063 Total loss: 4843303.396454
Iteration 2000 / 2000
Content 1 loss: 3836125.000000
Style 1 loss: 3857.199097

Style 2 loss: 88356.286621
Style 3 loss: 112853.234863
Style 4 loss: 773070.703125
Style 5 loss: 8708.604431 Total loss: 4822971.028137
libpng warning: Application built with libpng-1.5.27 but running with 1.6.29 /Users/research/torch/install/bin/luajit: /Users/research/torch/install/share/lua/5.1/image/init.lua:177: [write_png_file] png_create_write_struct failed stack traceback: [C]: in function 'save' /Users/research/torch/install/share/lua/5.1/image/init.lua:177: in function 'saver' /Users/research/torch/install/share/lua/5.1/image/init.lua:457: in function 'save' ./artistic_video_core.lua:497: in function 'save_image' ./artistic_video_core.lua:80: in function 'maybe_save' ./artistic_video_core.lua:107: in function 'opfunc' ./lbfgs.lua:214: in function 'optimize' ./artistic_video_core.lua:120: in function 'runOptimization' artistic_video.lua:262: in function 'main' artisticvideo.lua:359: in main chunk [C]: in function 'dofile' ...arch/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x0101cfe350 bartgs48:artistic-videos research$

I have reinstalled Libjpeg ,have check with the versions of linpng ,have uninstalled and reinstalled luarocks and luarocks image ,have tried to change the code and make the piutput command as png in --./stylizeVideo.sh code

But none of the above is working and I cant figure out whats the problem.

background : I am new to using c++.