Code Monkey home page Code Monkey logo

rust-mnist's People

Contributors

busyboredom avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

rust-mnist's Issues

Data set wont load on Windows

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").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.