busyboredom / rust-mnist Goto Github PK
View Code? Open in Web Editor NEWA reasonably efficient MNIST parser/loader written in rust.
License: MIT License
A reasonably efficient MNIST parser/loader written in rust.
License: MIT License
On Windows (didn't test Linux) I was getting the error:
Training data file "datasets\mnist\train-images-idx3-ubyte" not found; did you remember to download and extract it?: Os { code: 5, kind: permissiondenied, message: "access is denied." }
from running Mnist::new(r"datasets\mnist");
To get Mnist::new(r"datasets\mnist"); to work I had to move each of the idx3-ubyte files (from their folders with only the idx3-ubyte file inside after being extracted) into datasets\mnist\ and change the filenames const values in lib.rs to the following:
// Filenames
const TRAIN_DATA_FILENAME: &str = "train-images.idx3-ubyte";
const TEST_DATA_FILENAME: &str = "t10k-images.idx3-ubyte";
const TRAIN_LABEL_FILENAME: &str = "train-labels.idx1-ubyte";
const TEST_LABEL_FILENAME: &str = "t10k-labels.idx1-ubyte";
the only difference being a '.' instead of a '-' before 'idx3-ubyte' in each.
I'm not sure if I was doing anything wrong or if there is a better way for solving this. I used the built in file extraction tool in Windows 11 to decompress the .gz file, which might not be behaving how you expect (it created a folder with the name "train-images-idx3-ubyte" that has a file named "train-images.idx3-ubyte" in it from decompressing "train-images-idx3-ubyte.gz").
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.