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

Size of the output for larger number of images #25

Open
KumarLamic opened this issue Aug 9, 2018 · 1 comment
Open

Size of the output for larger number of images #25

KumarLamic opened this issue Aug 9, 2018 · 1 comment

Comments

@KumarLamic
Copy link

KumarLamic commented Aug 9, 2018

When i have 78200 images in total .. the code breaks..
it was fixed by changing the
array('B') => array('H')
the total size of the idx3-ubyte
should be 1700x46x784= 61308800 (#images * class * image_size=total_size)
but, sadly gives 122617632..
may be the code should be changed for array('H')..
i right now dont want to go into the detail how the code works.

@KumarLamic
Copy link
Author

i ve 46 output class and 1700 of images for each class .. it gives an error

header.append(int('0x'+hexval[2:][2:],16)) OverflowError: unsigned byte integer is greater than maximum

how possible could it be solved?

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