Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
0db67d85
Unverified
Commit
0db67d85
authored
Feb 14, 2022
by
Philip Meier
Committed by
GitHub
Feb 14, 2022
Browse files
fix prototype MNIST download (#5412)
parent
fd5109a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
torchvision/prototype/datasets/_builtin/mnist.py
torchvision/prototype/datasets/_builtin/mnist.py
+4
-4
No files found.
torchvision/prototype/datasets/_builtin/mnist.py
View file @
0db67d85
...
@@ -94,7 +94,7 @@ class _MNISTBase(Dataset):
...
@@ -94,7 +94,7 @@ class _MNISTBase(Dataset):
images
=
HttpResource
(
images_urls
[
0
],
sha256
=
images_sha256
,
mirrors
=
images_urls
[
1
:])
images
=
HttpResource
(
images_urls
[
0
],
sha256
=
images_sha256
,
mirrors
=
images_urls
[
1
:])
labels_urls
=
[
f
"
{
url_base
}
/
{
labels_file
}
"
for
url_base
in
url_bases
]
labels_urls
=
[
f
"
{
url_base
}
/
{
labels_file
}
"
for
url_base
in
url_bases
]
labels
=
HttpResource
(
labels_urls
[
0
],
sha256
=
image
s_sha256
,
mirrors
=
labels_urls
[
1
:])
labels
=
HttpResource
(
labels_urls
[
0
],
sha256
=
label
s_sha256
,
mirrors
=
labels_urls
[
1
:])
return
[
images
,
labels
]
return
[
images
,
labels
]
...
@@ -139,7 +139,7 @@ class MNIST(_MNISTBase):
...
@@ -139,7 +139,7 @@ class MNIST(_MNISTBase):
_URL_BASE
:
Union
[
str
,
Sequence
[
str
]]
=
(
_URL_BASE
:
Union
[
str
,
Sequence
[
str
]]
=
(
"http://yann.lecun.com/exdb/mnist"
,
"http://yann.lecun.com/exdb/mnist"
,
"https://ossci-datasets.s3.amazonaws.com/mnist
/
"
,
"https://ossci-datasets.s3.amazonaws.com/mnist"
,
)
)
_CHECKSUMS
=
{
_CHECKSUMS
=
{
"train-images-idx3-ubyte.gz"
:
"440fcabf73cc546fa21475e81ea370265605f56be210a4024d2ca8f203523609"
,
"train-images-idx3-ubyte.gz"
:
"440fcabf73cc546fa21475e81ea370265605f56be210a4024d2ca8f203523609"
,
...
@@ -180,7 +180,7 @@ class FashionMNIST(MNIST):
...
@@ -180,7 +180,7 @@ class FashionMNIST(MNIST):
),
),
)
)
_URL_BASE
=
"fashion-mnist.s3-website.eu-central-1.amazonaws.com
/
"
_URL_BASE
=
"
http://
fashion-mnist.s3-website.eu-central-1.amazonaws.com"
_CHECKSUMS
=
{
_CHECKSUMS
=
{
"train-images-idx3-ubyte.gz"
:
"3aede38d61863908ad78613f6a32ed271626dd12800ba2636569512369268a84"
,
"train-images-idx3-ubyte.gz"
:
"3aede38d61863908ad78613f6a32ed271626dd12800ba2636569512369268a84"
,
"train-labels-idx1-ubyte.gz"
:
"a04f17134ac03560a47e3764e11b92fc97de4d1bfaf8ba1a3aa29af54cc90845"
,
"train-labels-idx1-ubyte.gz"
:
"a04f17134ac03560a47e3764e11b92fc97de4d1bfaf8ba1a3aa29af54cc90845"
,
...
@@ -200,7 +200,7 @@ class KMNIST(MNIST):
...
@@ -200,7 +200,7 @@ class KMNIST(MNIST):
),
),
)
)
_URL_BASE
=
"http://codh.rois.ac.jp/kmnist/
index.html.en
"
_URL_BASE
=
"http://codh.rois.ac.jp/kmnist/
dataset/kmnist
"
_CHECKSUMS
=
{
_CHECKSUMS
=
{
"train-images-idx3-ubyte.gz"
:
"51467d22d8cc72929e2a028a0428f2086b092bb31cfb79c69cc0a90ce135fde4"
,
"train-images-idx3-ubyte.gz"
:
"51467d22d8cc72929e2a028a0428f2086b092bb31cfb79c69cc0a90ce135fde4"
,
"train-labels-idx1-ubyte.gz"
:
"e38f9ebcd0f3ebcdec7fc8eabdcdaef93bb0df8ea12bee65224341c8183d8e17"
,
"train-labels-idx1-ubyte.gz"
:
"e38f9ebcd0f3ebcdec7fc8eabdcdaef93bb0df8ea12bee65224341c8183d8e17"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment