AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.63k stars 7.95k forks source link

Deep Person Re-identification #4972

Open AlexeyAB opened 4 years ago

AlexeyAB commented 4 years ago

Bag of Tricks and A Strong Baseline for Deep Person Re-identification

double cosine_similarity(double *A, double *B, unsigned int size)
{
    double mul = 0.0, d_a = 0.0, d_b = 0.0 ;

    for(unsigned int i = 0; i < size; ++i) 
    {
        mul += A[i] * B[i] ;
        d_a += A[i] * A[i] ;
        d_b += B[i] * B[i] ;
    }
    double similarity = 0;
    double divider = sqrt(d_a) * sqrt(d_b);
    if(divider > 0) similarity = mul / divider;
    return similarity;
}

image



image

WongKinYiu commented 4 years ago

add some references:

  1. Input Two Continuous Images, Estimate Offset of Center of Objects Tracking Objects as Points https://github.com/xingyizhou/CenterTrack image

  2. Online Single Stage Joint Detection and Tracking RetinaTrack: Online Single Stage Joint Detection and Tracking image