kpzhang93 / MTCNN_face_detection_alignment

Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks
MIT License
2.8k stars 1.01k forks source link

Some questions about generateBoundingBox() function. #5

Open DuinoDu opened 7 years ago

DuinoDu commented 7 years ago

Hey, thanks for your excellent job! I have one question about generateBoundingBox.m

    [y x]=find(map>=t);
    a=find(map>=t); 
    if size(y,1)==1
        y=y';x=x';score=map(a)';dx1=dx1';dy1=dy1';dx2=dx2';dy2=dy2';
    else
        score=map(a);
    end

When size(y,1)==1, there is only one point found in map. So why do you transpose those variables?

BTW, I implement mtcnn in python. Here is the repo.

Thanks.

DuinoDu commented 7 years ago

Hey, I make another cpp version of mtcnn. Here is the repo.

whcjb commented 6 years ago

I think it is reversed.

KLH1472 commented 5 years ago

@DuinoDu I am wondered as well, do you have an answer?

KLH1472 commented 5 years ago

@DuinoDu That drives me crazy, do you know why??

DuinoDu commented 5 years ago

Maybe you can refer to python version.

KLH1472 commented 5 years ago

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32 @DuinoDu

KLH1472 commented 5 years ago

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32