OverflowError: unsigned byte integer is greater than maximum
See original GitHub issueWhen my dataset goes to 77000+ images, there is an error:
Traceback (most recent call last): File "convert-images-to-mnist-format.py", line 46, in <module> header.append(long('0x'+hexval[2:][2:],16)) OverflowError: unsigned byte integer is greater than maximum
Can anybody help me? I think it is because images too many, how to fix it?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
I keep getting overflowError: unsigned short is greater than ...
Sounds like somewhere an integer exceeds the maximum limit that it can hold. Without giving us an exact error code it'll be a...
Read more >comparison of characters in C & python - Stack Overflow
it's actually giving: OverflowError: unsigned byte integer is greater than maximum. and it's because the %c format expects a single byte, ...
Read more >Inconsistency in overflow error messages of integer argument
... line 1, in <module> OverflowError: unsigned byte integer is greater than maximum >>> _testcapi.getargs_b(-1000) Traceback (most recent ...
Read more >A brand new website interface for an even better experience!
OverflowError : unsigned byte integer is greater than maximum.
Read more >integer overflow - Python - Bytes
OverflowError : unsigned short is greater than maximum. The number was around 65536 so it makes sense that it would overflow a
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey,
So my solution to this was to do the following.
` hexval = “{0:#0{1}x}”.format(len(FileList),10) # number of files in HEX
`
that was just a random trial and it worked for me