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

Fixed Folder Issue #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed Folder Issue #20

wants to merge 2 commits into from

Conversation

A-Fitz
Copy link

@A-Fitz A-Fitz commented Feb 12, 2018

As seen in this issue, when converting images to the MNIST/EMNIST format, a folder (named '22') would be skipped, and files wouldn't be written in that location in the binary.

This pull request fixes that issue by replacing

hexval = "{0:#0{1}x}".format(len(FileList),6)

with

hexval = hex(int(len(FileList)))

Updated because jpg files were not being processed correctly. I want to say thank you to Harry (何嘉民) from Sun Yat-sen University for notifying me of this issue.
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

Successfully merging this pull request may close these issues.

None yet

1 participant