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

write_png_file png_create_write_struct failed #51

Open
AniLdn opened this issue May 24, 2017 · 0 comments
Open

write_png_file png_create_write_struct failed #51

AniLdn opened this issue May 24, 2017 · 0 comments

Comments

@AniLdn
Copy link

AniLdn commented May 24, 2017

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.87_3047
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'
artistic_video.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++.

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

1 participant