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

Error in unpacking archive of SROIE dataset #1178

Merged
merged 3 commits into from
Apr 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Error in unpacking archive of SROIE dataset
  • Loading branch information
HamzaGbada committed Apr 19, 2023
commit 512f31fec1c14dd4d92383fa24c95566e0b7db1a
4 changes: 3 additions & 1 deletion doctr/datasets/sroie.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ class SROIE(VisionDataset):
TRAIN = (
"https://doctr-static.mindee.com/models?id=v0.1.1/sroie2019_train_task1.zip&src=0",
"d4fa9e60abb03500d83299c845b9c87fd9c9430d1aeac96b83c5d0bb0ab27f6f",
"sroie2019_train_task1.zip",
)
TEST = (
"https://doctr-static.mindee.com/models?id=v0.1.1/sroie2019_test.zip&src=0",
"41b3c746a20226fddc80d86d4b2a903d43b5be4f521dd1bbe759dbf8844745e2",
"sroie2019_test.zip",
)

def __init__(
Expand All @@ -54,7 +56,7 @@ def __init__(
url, sha256 = self.TRAIN if train else self.TEST
super().__init__(
url,
None,
name,
sha256,
True,
pre_transforms=convert_target_to_relative if not recognition_task else None,
Expand Down