modified mnist image link in the Hugging face #2134
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Checklist
run-checks all
script has been executed.Related Issues/PRs
#2133
Changes
https://datasets-server.huggingface.co/assets/mnist
,https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test
will be matched for the purpose to show the image.https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test
can be used withrow
parameter so I replaced it with the old one.https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test
can show you 0-9999 indexed image, so I remove the limit of under-100 indexed image condition.pytorch-import/README.md
, so I did the same thing for them.Testing
I executed the codes and check out the link as screenshots.
index 15
index 9999
(
assert!(image_index < 10000, "Image index must be less than 10000");
condition is already included in the code, so 9999 is enough.)