Wanggcong / Spatial-Temporal-Re-identification

[AAAI 2019] Spatial Temporal Re-identification
MIT License
384 stars 78 forks source link

Little confused about function spatial_temporal_distribution #16

Open segawasai opened 4 years ago

segawasai commented 4 years ago

I am researching about your project, but i am so confused about the function spatial_temporal_distribution in file gen_st_model_xxx.py. Can you brief explanation about this function. What is the main mission of this function ? And Which part in the paper corresponding to this function ?

jerryhitit commented 4 years ago

The main purpose of this function, I think, is trying to tell the center point of each cam_id and compute the distance between those cameras.

Accordingly, for one Reid identity, the spatial-temporal_avg is the (#cams, #cams) shape matrix and the content is the center point of each camera, which computed by sigma(frame numbers/timestamp of the shooting time)/(how many times it appeard in this camera + eps).

The following distribution use interval to normalize the time difference of each camera center point and hist_ represent the unit distance of each camera. When walking through the whole identity set, the distribution only remain the time dimension and the unit distance dimension.

Perhaps this explanation could be helpful.

Wanggcong commented 4 years ago

Thanks @jerryhitit ! The main code is like that!