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

Can the modules for group and pedestrian interaction in the code be used independently? #8

Open
Pradur241 opened this issue Feb 6, 2024 · 5 comments

Comments

@Pradur241
Copy link

I am currently trying to implement a crowd grouping algorithm, and I was greatly inspired by your work. I would like to ask if the code for row-to-row group interaction can be used alone without the prediction part.

@InhwanBae
Copy link
Owner

Hi @Pradur241,

Of course! You can extract the group indices without a predictor using line 212 in the model_groupwrapper.py. I have checked that any predictors other than trajectories or directly performing supervised training on the indices with BCEloss work fine. I hope it works well in your work.

# Intra-/Inter-group graph
v_rel, indices = self.group_gen(v_rel, v_abs, hard=True)

@Pradur241
Copy link
Author

Thanks!

@Pradur241
Copy link
Author

@InhwanBae The determination of the value of self.th is a subject of my curiosity. How should this value be adjusted to accommodate pedestrian interaction in various scenarios?

@InhwanBae
Copy link
Owner

@Pradur241 The value of self.th is a learnable parameter that divides whether two people are in the same group or not, based on the feature distance between them. In easy words, in the case that d_type is Euclidean, it determines whether they are in the same group by thresholding based on the actual distance (e.g., 1 meter). When applied to different data, initialize the thresholding parameter to a suitable and affordable value for custom data, and it will optimized after training.

@Pradur241
Copy link
Author

OK,thanks for answering

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

2 participants