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

frame selection and frame aggregation #2

Open
Arbor334 opened this issue Aug 13, 2024 · 3 comments
Open

frame selection and frame aggregation #2

Arbor334 opened this issue Aug 13, 2024 · 3 comments

Comments

@Arbor334
Copy link

Great project, I looked at your model.py and train.py files
Can you pinpoint the core code for frame selection and frame aggregation in the file?:happy:

@angelaaye
Copy link
Contributor

Hi @Arbor334, frame selection is done here, which calls modeling/sampler.py to sample the frames.

Frame aggregation is done here in the similarity matrix computation step.

@Arbor334
Copy link
Author

thanks!

@Arbor334
Copy link
Author

gumbel_softmax_top_k(logits, top_k, tau, hard=False, reduce_sum=True, maskvector=True, logit_tau=1): Is this function from modeling/gumbel_softmax.py used to select top-k frames? and actions = gumbel_softmax_top_k(prob, int(self.top_k), tau, True, reduce_sum=False) What does the return value actions mean? select_frames or not ? 😃

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