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

OpenCV issue #12

Open
songcui opened this issue May 11, 2016 · 2 comments
Open

OpenCV issue #12

songcui opened this issue May 11, 2016 · 2 comments

Comments

@songcui
Copy link

songcui commented May 11, 2016

Hi,

When I am running on your sample images in Section "Pre-cropped images and training labels for FLIC", I got the following errors:
**
I0511 02:21:53.280088 6621 net.cpp:477] conv2 <- pool1
I0511 02:21:53.280124 6621 net.cpp:433] conv2 -> conv2
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/color.cpp, line 3648
terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/color.cpp:3648: error: (-215) scn == 3 || scn == 4 in function cvtColor**

Is it because of a different OpenCV version you are using? What is OpenCV version you are using. Thanks.

Song

@sunsibar
Copy link

sunsibar commented Jul 26, 2016

It's a bit late now, but anyway:

I always get that error when it doesn't find the images.
Make sure you have a "/" at the end of the "root_img_dir: .." string. And if you're using his flic data, don't put a "train/" or "test/" at the end of that same string, "train/" is part of the image names given in train_shuffle.txt, and it doesn't find the folder "/train/train".

@xizero00
Copy link

xizero00 commented Jul 22, 2017

Hi
the parameters is not correct, here is the example, you have to add a / at the end of path
for parameter root_img_dir

 heatmap_data_param {
    source: "/home/ddd/projects/caffe-heatmap/data/flic/train_shuffle.txt"
    root_img_dir: "/home/ddd/projects/caffe-heatmap/data/flic/"
    batchsize: 14
    cropsize: 248
    outsize: 256

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

3 participants