jcjohnson / jcjohnson/densecap
libjpeg and libpng version problem
- Dominant language
- Jupyter Notebook
- Stars
- 1.6k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
I'm running to an issue where the version of the packages are just not right. I ran
`th run_model.lua -input_image imgs/test.png -gpu -1`
It says:
```1/1 processing image imgs/test.png
libpng warning: Application built with libpng-1.4.12 but running with 1.6.34
/Users/yanchenm/torch/install/bin/lua: /Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:156: [read_png] png_create_read_struct failed
stack traceback:
[C]: in function 'load'
/Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:156: in function 'loader'
/Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:388: in function 'load'
run_model.lua:67: in function 'run_image'
run_model.lua:164: in main chunk
[C]: in function 'dofile'
...henm/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: in ?
```
And if I used .jpg
`th run_model.lua -input_image imgs/elephant.jpg -gpu -1`
```1/1 processing image imgs/elephant.jpg
/Users/yanchenm/torch/install/bin/lua: /Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:235: Wrong JPEG library version: library is 90, caller expects 80
stack traceback:
[C]: in function 'load'
/Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:235: in function 'loader'
/Users/yanchenm/torch/install/share/lua/5.2/image/init.lua:388: in function 'load'
run_model.lua:67: in function 'run_image'
run_model.lua:164: in main chunk
[C]: in function 'dofile'
...henm/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: in ?
```
I've tried to uninstall libjpeg and libpng, and also had libjpeg8d (with 9 and w/o), and libpng1.4.12 (with 1.6 and w/o) copied in the same location. I tried both lua5.2, 5.3.
I'm using MacOS 10.12.6. Please help!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.