happynear / happynear/caffe-windows

Bug inside predict_box_layer.cpp for MTCNN face detector

Open
#215 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.3k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

Hello! My name is Tanya. I am using your layers for developing MTCNN face detector.
And I have found a bug inside a predict_box_layer.cpp in the CPU_ONLY mode.
When processing the image 81.jpg after 80.jpg, I meet the error at the line 120:

`top[1]->mutable_cpu_data()[i * 5 + 1] = bb_data[top[0]->offset(0, 1, y, x)];`

Error mesage:

```
HEAP CORRUPTION DETECTED: after Normal block (#107479) at 0x000000000ED47000.
CRT detected that the application wrote to memory after end of heap buffer.
```

When debugging error message is like this:
`Access violation writing location 0x000000000ED47000.`

Error occurs when i equal 147, and memory acess `top[1]->mutable_cpu_data()[736]` is corrupted.
Please, can you tell me what could corrupt the memory or how to find the error cause.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.