modified mnist image link in the Hugging face (#2134)

This commit is contained in:
tiruka 2024-08-09 01:15:08 +09:00 committed by GitHub
parent d770b1f470
commit 64b57792e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 14 deletions

View File

@ -21,7 +21,7 @@ Success!
Predicted: 5 Predicted: 5
Actual: 5 Actual: 5
See the image online, click the link below: See the image online, click the link below:
https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/15/image/image.jpg https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row=15
``` ```
## Feature Flags ## Feature Flags

View File

@ -57,10 +57,6 @@ fn main() {
println!("Success!"); println!("Success!");
println!("Predicted: {}", arg_max); println!("Predicted: {}", arg_max);
println!("Actual: {}", item.label); println!("Actual: {}", item.label);
// Print the image URL if the image index is less than 100 (the online dataset only has 100 images)
if image_index < 100 {
println!("See the image online, click the link below:"); println!("See the image online, click the link below:");
println!("https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/{image_index}/image/image.jpg"); println!("https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row={image_index}");
}
} }

View File

@ -25,5 +25,5 @@ Success!
Predicted: 5 Predicted: 5
Actual: 5 Actual: 5
See the image online, click the link below: See the image online, click the link below:
https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/15/image/image.jpg https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row=15
``` ```

View File

@ -66,10 +66,6 @@ fn main() {
println!("Success!"); println!("Success!");
println!("Predicted: {}", arg_max); println!("Predicted: {}", arg_max);
println!("Actual: {}", item.label); println!("Actual: {}", item.label);
// Print the image URL if the image index is less than 100 (the online dataset only has 100 images)
if image_index < 100 {
println!("See the image online, click the link below:"); println!("See the image online, click the link below:");
println!("https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/{image_index}/image/image.jpg"); println!("https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row={image_index}");
}
} }