Bayesian-Crowd-Counting
Bayesian-Crowd-Counting copied to clipboard
Issue about the dataset used in your code
In crowd.py, the code shows that the .npy is the annotation file format, so which public dataset does it belong to? I found the annotation files of many public dataset are .mat format... BTW, the variable keypoints seems has shape of (n, 3), when keypoints[:, :2] is the coordinates of the keypoints, what does the keypoints[:, 2] represents?
Same question[1], but question[0] is easy. Before training or testing, you should run the pre_process.py to pre-process the dataset from .mat to .npy.
@Yogurt2019 Thank you very much! According to the your answer, I found the meaning of keypoints[:, 2]: you can download the UCF-QNRF_ECCV18 dataset which used in this project & paper, then do a test for testing the function find_dis in preprocess_dataset.py, you will solve the problem!
@seekFire Thx too! Keypoints[:, 2] represents the mean value of three nearest point distances. 都是中国人本来想中文回复的,但是为了国外友人能看懂还是英文回复了 加油 :)
The last coordinate is the estimated sizes of people.
@seekFire Thx too! Keypoints[:, 2] represents the mean value of three nearest point distances. 都是中国人本来想中文回复的,但是为了国外友人能看懂还是英文回复了 加油 :)
I think this is not the nearest neighbor. I tried the special case and got the following result.
k=np.asarray([0,1.1,2,13,44,5]) np.partition(k, 3) array([ 1.1, 0. , 2. , 5. , 13. , 44. ])