Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue about the dataset used in your code #21

Open
seekFire opened this issue Apr 13, 2020 · 5 comments
Open

Issue about the dataset used in your code #21

seekFire opened this issue Apr 13, 2020 · 5 comments

Comments

@seekFire
Copy link

seekFire commented Apr 13, 2020

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?

@Yogurt2019
Copy link

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.

@seekFire
Copy link
Author

@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!

@Yogurt2019
Copy link

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

@zhiheng-ma
Copy link
Owner

The last coordinate is the estimated sizes of people.

@jhl13
Copy link

jhl13 commented Apr 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants