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

Error while training #4

Open
jay98 opened this issue Jul 19, 2017 · 4 comments
Open

Error while training #4

jay98 opened this issue Jul 19, 2017 · 4 comments

Comments

@jay98
Copy link

jay98 commented Jul 19, 2017

I got the camVid dataset as specified in the in the read me file and installed video-decoder

Ientered the following command to start training:
th main.lua --datapath ./data/CamVid/ --cachepath ./dataCache/CamV/ --dataset cv --model ./models/model.lua --save ./Models/CamV/ --saveTrainConf --saveAll --plot

And I got the following error,

Preparing CamVid dataset for data loader
Filenames and their role found in: ./misc/dataDistributionCV.txt

Getting input images and labels for: 01TP_extract.avi
/home/jayp/torch/install/bin/luajit: /home/jayp/torch/install/share/lua/5.1/trepl/init.lua:389: /home/jayp/torch/install/share/lua/5.1/trepl/init.lua:389: error loading module 'libvideo_decoder' from file '/home/jayp/torch/install/lib/lua/5.1/libvideo_decoder.so':
/home/jayp/torch/install/lib/lua/5.1/libvideo_decoder.so: undefined symbol: avcodec_get_frame_defaults
stack traceback:
[C]: in function 'error'
/home/jayp/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:34: in main chunk
[C]: in function 'dofile'
...jayp/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

I would really appreciate if anyone would help me with this.

Thank You!

@codeAC29
Copy link
Contributor

@jay98 can you please check and tell me if you are able to run this script?

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

@codeAC29 I was able to fix the error by looking at issues in the video-decore git , but now I get the following error

Preparing CamVid dataset for data loader
Filenames and their role found in: ./misc/dataDistributionCV.txt

Getting input images and labels for: 01TP_extract.avi
Input #0, avi, from '/home/jayp/Documents/LinkNet/data/CamVid/1/input/01TP_extract.avi':
Duration: 00:02:05.03, start: 0.000000, bitrate: 108156 kb/s
Stream #0:0: Video: lagarith (LAGS / 0x5347414C), none, 960x720, 108179 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
<video_decoder> the codec is not supported.
/home/jayp/torch/install/bin/luajit: /home/jayp/torch/install/share/lua/5.1/trepl/init.lua:389: misc/framevideo.lua:28: No video
stack traceback:
[C]: in function 'error'
/home/jayp/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:34: in main chunk
[C]: in function 'dofile'
...jayp/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406d20

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

I looked at this issue for the previous fix

@jay98
Copy link
Author

jay98 commented Jul 19, 2017

And I got the following output when I ran the script you told me to run

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'echo-hereweare.mp4':
Metadata:
major_brand : M4VP
minor_version : 1
compatible_brands: M4VPM4A mp42isom
creation_time : 2010-07-23T14:41:23.000000Z
encoder : CoreMediaAuthoring 700, CoreMedia 484.11, x86_64
Duration: 00:00:44.60, start: 0.000000, bitrate: 961 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, 2 channels, 132 kb/s (default)
Metadata:
creation_time : 2010-07-23T14:41:23.000000Z
handler_name : Core Media Audio
Stream #0:1(eng): Video: h264 (avc1 / 0x31637661), none, 480x270, 818 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 3k tbn, 3k tbc (default)
Metadata:
creation_time : 2010-07-23T14:41:23.000000Z
handler_name : Core Media Video
<video_decoder> the codec is not supported.
/home/jayp/torch/install/bin/luajit: test-stream.lua:14: No video
stack traceback:
[C]: in function 'error'
test-stream.lua:14: in main chunk
[C]: in function 'dofile'
...jayp/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00406d20

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

2 participants