davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.32k stars 3.35k forks source link

[Bug]: Fhog_example does not work with example data #2967

Closed TonyCongqianWang closed 2 weeks ago

TonyCongqianWang commented 2 months ago

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24 51c7a3597935ed2cb969521a0ada0b7209f78ec2

Python version

N/A

Compiler

GCC 9.4.0

Expected Behavior

I compiled the example programs and tried to ran the ./fhog_object_detector_ex ../faces that worked. But when I removed the "optional" upsampling, I get an exception that there was an impossible box. To me it it should be possible to run the example program even after removing the "optional" code.

Current Behavior

Exception is thrown "impossible box detected".

Steps to Reproduce

clone current repo, build examples, comment out the lines

upsample_image_dataset<pyramid_down<2> >(images_train, face_boxes_train);
        upsample_image_dataset<pyramid_down<2> >(images_test,  face_boxes_test);

in fhog_object_detector_ex.cpp and run with ./fhog_object_detector_ex ../faces

Anything else?

No response

davisking commented 2 months ago

Thanks, yeah those comments are not clear, since for that dataset upsampling is required. I just updated them to be less confusing.

dlib-issue-bot commented 1 month ago

Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-08-07 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot commented 3 weeks ago

Warning: this issue has been inactive for 42 days and will be automatically closed on 2024-08-07 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot commented 2 weeks ago

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.