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

Image and label mismatch while training #33

Open
qualia0000 opened this issue Apr 26, 2017 · 0 comments
Open

Image and label mismatch while training #33

qualia0000 opened this issue Apr 26, 2017 · 0 comments

Comments

@qualia0000
Copy link

qualia0000 commented Apr 26, 2017

When I am training dilation frontend network with ADE20K dataset. The procedure log shows that the network got a mismatched pair of image and label. Here is the log:
`
I0426 15:44:08.319962 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/images/training/s/skyscraper/ADE_train_00016452.jpg
I0426 15:44:08.320272 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/output_train_label/ADE_train_00016452_seg.png
I0426 15:44:08.324337 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/images/training/s/staircase/ADE_train_00016812.jpg
I0426 15:44:08.324854 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/output_train_label/ADE_train_00016812_seg.png
I0426 15:44:10.132612 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/images/training/misc/ADE_train_00012355.jpg
I0426 15:44:10.132908 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/output_train_label/ADE_train_00013626_seg.png
I0426 15:44:10.171540 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/images/training/misc/ADE_train_00012355.jpg
I0426 15:44:10.171807 160840 io.cpp:84] /home/xiaosong/data/ADE20K_2016_07_26/output_train_label/ADE_train_00013626_seg.png
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /opt/packages/opencv-2.4.13/modules/core/src/matrix.cpp, line 323
terminate called after throwing an instance of 'cv::Exception'
what(): /opt/packages/opencv-2.4.13/modules/core/src/matrix.cpp:323: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat

*** Aborted at 1493192650 (unix time) try "date -d @ 1493192650" if you are using GNU date ***
PC: @ 0x7f9b8b3c71d7 __GI_raise
*** SIGABRT (@0x3eb00027417) received by PID 160791 (TID 0x7f9b762fa700) from PID 160791; stack trace: ***
@ 0x7f9b8b762370 (unknown)
@ 0x7f9b8b3c71d7 __GI_raise
@ 0x7f9b8b3c88c8 __GI_abort
@ 0x7f9b8e13fab5 (unknown)
@ 0x7f9b8e13da26 (unknown)
@ 0x7f9b8e13da53 (unknown)
@ 0x7f9b8e13dc73 (unknown)
@ 0x7f9b8f363170 cv::error()
@ 0x7f9b8f2d689d cv::Mat::Mat()
@ 0x7f9b97f3713b caffe::DataTransformer<>::Transform()
@ 0x7f9b97fc7637 caffe::ImageLabelDataLayer<>::load_batch()
@ 0x7f9b97f636e9 caffe::BasePrefetchingDataLayer<>::InternalThreadEntry()
@ 0x7f9b97f3fcf0 caffe::InternalThread::entry()
@ 0x7f9b8e5f827a (unknown)
@ 0x7f9b8b75adc5 start_thread
@ 0x7f9b8b48973d __clone
`
Notice that the last two inputs, the image and the corresponding label, are not of a training pair. Besides, the problem occurred randomly on different images input.

Can someone help me with this?
Thank you.

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