mnist
mnist copied to clipboard
panicked at 'Unable to find path to images at "data/train-images-idx3-ubyte".'
here are some test code
use mnist::MnistBuilder;
#[test]
fn test_mnist() {
let mnist = MnistBuilder::new()
.label_format_digit()
.training_set_length(50_000)
.validation_set_length(10_000)
.test_set_length(10_000)
.finalize();
dbg!(mnist.trn_img);
dbg!(mnist.trn_lbl);
}
- cargo.toml
[dependencies]
mnist = "0.5.0"
and got error
running 1 test
thread 'test_mnist' panicked at 'Unable to find path to images at "data/train-images-idx3-ubyte".'
how could i fix it?
Are the files present on your machine? The setup docs give some helpful context.
MnistBuilder::download_and_extract
also looks helpful.
I had the same issue but it was because the files I downloaded had a "." instead of a "-" somewhere.