Skip to content

rename the database names in or_mnist.cpp #3040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

WN90
Copy link
Contributor

@WN90 WN90 commented Sep 14, 2021

The files from http://yann.lecun.com/exdb/mnist/ are
train-images-idx3-ubyte.gz
train-labels-idx1-ubyte.gz
t10k-images-idx3-ubyte.gz
t10k-labels-idx1-ubyte.gz

after unpacking, ther default names are like xxxx-idxn-ubyte

but the names in the code are
train-images.idx3-ubyte
train-labels.idx1-ubyte
t10k-images.idx3-ubyte
t10k-labels.idx1-ubyte

'-' is replaced by '.' , this cause a segmentation fault when do as the instructions in dataset.hpp:
./opencv/build/bin/example_datasets_or_mnist -p=/home/user/path_to_unpacked_files/

Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution 👍

@opencv-pushbot opencv-pushbot merged commit 79e58f9 into opencv:3.4 Sep 16, 2021
@alalek alalek mentioned this pull request Sep 25, 2021
@alalek alalek mentioned this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants