Skip to content

Fix: 'check if all files are intact' was depending on the file system order - #5

Open
liebharc wants to merge 1 commit into
SeldonHZ:mainfrom
liebharc:main
Open

Fix: 'check if all files are intact' was depending on the file system order#5
liebharc wants to merge 1 commit into
SeldonHZ:mainfrom
liebharc:main

Conversation

@liebharc

Copy link
Copy Markdown

Hi, thanks for this version of easyocr! On my machine (Ubuntu running in Windows WSL) every run triggers: "Re-downloading character text files". It seems that the md5 checksums are all correct, but the order in which os.listdir returns the files is different to the order defined in character_md5sum. This PR would address this issue by sorting the files explicitly in Python before comparing them to the known checksums.

@SeldonHZ SeldonHZ left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contribution!

@GaspardCulis

Copy link
Copy Markdown

Hi ! Any updates ? Can't this get merged ?

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.

3 participants