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

Varying sample size in Siamese network #11

Open
debmalya97 opened this issue May 16, 2021 · 0 comments
Open

Varying sample size in Siamese network #11

debmalya97 opened this issue May 16, 2021 · 0 comments

Comments

@debmalya97
Copy link

I have an image dataset where the folder structure is as follows- there are 900 folders (each folder will be a class) and in each folder, we have a varying number of images(each image has been resized to the same pixel intensity).

Now when we construct the 4d matrix to be fed to the deep learning model it should be of the dimension-

(900,A,105,105)

900 because that's the total number of classes
105 x 105 because I have resized each image to that
now A should be the number of images in each folder.
In my case, the number of images in each folder is varying so my question is-

If I keep the original varying number of images in each folder that means in my 4d array A would be the dimension of the largest folder size which means for folders of lesser number of images it will have zero 2d matrix or matrices. So is that technically right or should I make all the folder sizes the same?

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