Skip to content

Fixing misalignment crash: width and height of bbox should be a multi…#11

Open
r-kellermann wants to merge 1 commit intovojirt:masterfrom
r-kellermann:fix_sse_misalignment_crash
Open

Fixing misalignment crash: width and height of bbox should be a multi…#11
r-kellermann wants to merge 1 commit intovojirt:masterfrom
r-kellermann:fix_sse_misalignment_crash

Conversation

@r-kellermann
Copy link
Copy Markdown

…ple of (cell_size * 2)

Proposed ix for: #10

Piotr's hog SSE calculations require the inputs to be 16 bytes aligned, or it crashes when trying to release R1 and R2 in gradientMex.cpp::fhog.
The relevant propagated parameters are the bounding box width and height that should be a multiple of (cell_size * 2).

You can see that when profiling the existing code with Valgrind, it complains on invalid read / writes. With the proposed fix those errors are gone.

@bliss3596
Copy link
Copy Markdown

enen if I change code according to your commit, hog heap crashing problem still exist...any otther idea to solve it ? thank you

@isgursoy
Copy link
Copy Markdown

isgursoy commented Feb 3, 2020

#10 : I ended up using https://github.com/joaofaro/KCFcpp

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

Successfully merging this pull request may close these issues.

4 participants