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

Variable number of objects #15

Open
MordehayM opened this issue Jun 8, 2022 · 0 comments
Open

Variable number of objects #15

MordehayM opened this issue Jun 8, 2022 · 0 comments

Comments

@MordehayM
Copy link

Hi,
First of all, great project!
I would like to ask about your dataset. it seems to me that each sample returned by the AudioVisualMUSICDataset's getitem method can be with variable number of objects(the "visuals" variable here:

data['visuals'] = visuals
).
A question that arises from this is how the dataloader will batch these samples together.
I can see in the attached link that you address this problem by padding with -1 the lables(here:
labels = np.vstack(objects_labels) #labels for each object, -1 denotes padded object
) but I did'nt figure it out where exactly you did this padding. Moreover, what about the variable objects problem mentioned above?

Thank you in advance

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

1 participant