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

test is failing with libjpeg pkg is missing #144

Open
khemendra0 opened this issue May 5, 2021 · 0 comments
Open

test is failing with libjpeg pkg is missing #144

khemendra0 opened this issue May 5, 2021 · 0 comments

Comments

@khemendra0
Copy link

Hi,
I have installed all prerequisite and running test:
DATA_ROOT=./datasets/ae_photos name=style_cezanne_cpu_pretrained model=one_direction_test phase=test gpu=0 loadSize=256 fineSize=256 resize_or_crop="scale_width" th test.lua

Below is error for libjpeg pkg not installed.
But when trying to install it is already installed.

loading previously trained model (/root/torch/CycleGAN/checkpoints/style_cezanne_cpu_pretrained/latest_net_G.t7)
use InstanceNormalization
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/threads/threads.lua:315: /root/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 1 callback] /root/torch/install/share/lua/5.1/dok/inline.lua:738: <image.loadJPG> libjpeg package not found, please install libjpeg
stack traceback:
[C]: in function 'error'
/root/torch/install/share/lua/5.1/dok/inline.lua:738: in function 'error'
/root/torch/install/share/lua/5.1/image/init.lua:232: in function 'loader'
/root/torch/install/share/lua/5.1/image/init.lua:388: in function 'load'
/root/torch/CycleGAN/data/donkey_folder.lua:92: in function 'loadSingleImage'
/root/torch/CycleGAN/data/donkey_folder.lua:159: in function 'sampleHookTrain'
/root/torch/CycleGAN/data/dataset.lua:337: in function 'getByClass'
/root/torch/CycleGAN/data/dataset.lua:370: in function </root/torch/CycleGAN/data/dataset.lua:363>
[C]: in function 'xpcall'
/root/torch/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'
/root/torch/install/share/lua/5.1/threads/queue.lua:65: in function </root/torch/install/share/lua/5.1/threads/queue.lua:41>
[C]: in function 'pcall'
/root/torch/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'
[string " local Queue = require 'threads.queue'..."]:15: in main chunk
root@83821d00459d:~/torch/CycleGAN# sudo apt-get install libjpeg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg-dev is already the newest version (8c-2ubuntu8).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

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