Bayesian-Crowd-Counting icon indicating copy to clipboard operation
Bayesian-Crowd-Counting copied to clipboard

Issue about the dataset used in your code

Open seekFire opened this issue 4 years ago • 5 comments

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?

seekFire avatar Apr 13 '20 09:04 seekFire

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 avatar Apr 13 '20 12:04 Yogurt2019

@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 avatar Apr 14 '20 04:04 seekFire

@seekFire Thx too! Keypoints[:, 2] represents the mean value of three nearest point distances. 都是中国人本来想中文回复的,但是为了国外友人能看懂还是英文回复了 加油 :)

Yogurt2019 avatar Apr 14 '20 04:04 Yogurt2019

The last coordinate is the estimated sizes of people.

ZhihengCV avatar Apr 15 '20 04:04 ZhihengCV

@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. ])

jhl13 avatar Apr 23 '20 10:04 jhl13