bob.db.mnist issueshttps://gitlab.idiap.ch/bob/bob.db.mnist/-/issues2018-04-19T05:51:10Zhttps://gitlab.idiap.ch/bob/bob.db.mnist/-/issues/5Images are returned in wrong format (black and white exchanged)2018-04-19T05:51:10ZManuel Günthersiebenkopf@googlemail.comImages are returned in wrong format (black and white exchanged)I have just come across a weired thing with respect to the image representation of the MNIST images. When reading the instructions on the MNIST web page: http://yann.lecun.com/exdb/mnist/ it is written there that:
> Pixel values are 0 t...I have just come across a weired thing with respect to the image representation of the MNIST images. When reading the instructions on the MNIST web page: http://yann.lecun.com/exdb/mnist/ it is written there that:
> Pixel values are 0 to 255. 0 means background (white), 255 means foreground (black).
which is exactly the opposite to how images are usually stored: black is 0 and white is 255.
So, what do you think, should we change the `images` to be `255-images` in https://gitlab.idiap.ch/bob/bob.db.mnist/blob/929cbe3bec9c8a04cc08202e1b7ce15e1fe86871/bob/db/mnist/query.py#L60, or shall we keep it as it is (since we are not really converting them to images here)? Shall we at least mention this in our documentation?https://gitlab.idiap.ch/bob/bob.db.mnist/-/issues/4Move M-NIST files to our metafile server2017-10-19T14:04:35ZAndré AnjosMove M-NIST files to our metafile serverI think we should just package this ourselves and be done. We get issues at every build trying to download these files from some place else.I think we should just package this ourselves and be done. We get issues at every build trying to download these files from some place else.https://gitlab.idiap.ch/bob/bob.db.mnist/-/issues/3db.query(labels=0) returns all data2017-10-19T14:04:35ZAndré Anjosdb.query(labels=0) returns all data*Created by: siebenkopf*
When I query the database with:
>>> db = xbob.db.mnist.Database()
>>> training_targets = db.query("training", labels=0)[1]
>>> print (training_targets)
I get all possible targets, rather than only the target...*Created by: siebenkopf*
When I query the database with:
>>> db = xbob.db.mnist.Database()
>>> training_targets = db.query("training", labels=0)[1]
>>> print (training_targets)
I get all possible targets, rather than only the targets with label 0.
For all other labels, this work as expected.
I guess the problem is that the value ``0`` is special since ``0`` evaluates to ``False`` when tested, e.g., using ``if``. I will investigate.https://gitlab.idiap.ch/bob/bob.db.mnist/-/issues/2Package downloads M-NIST digit rec. DB at every iteration2017-10-19T14:04:35ZAndré AnjosPackage downloads M-NIST digit rec. DB at every iteration*Created by: anjos*
This package is downloading the M-NIST database from the respective URL (LeCun's site) at every iteration. The reason is that it has no way to know where it previously downloaded a copy (because it is using a tempora...*Created by: anjos*
This package is downloading the M-NIST database from the respective URL (LeCun's site) at every iteration. The reason is that it has no way to know where it previously downloaded a copy (because it is using a temporary directory to do so).
It would be more useful if the database was downloaded to a known directory.
I'd propose this database provided a "create" action that would allow it to be downloaded and installed within the package.https://gitlab.idiap.ch/bob/bob.db.mnist/-/issues/1Database is not (yet) part of the xbob.db.aggregator2017-10-19T14:04:35ZAndré AnjosDatabase is not (yet) part of the xbob.db.aggregator*Created by: laurentes*
We might consider to add it later on to run the test suite every night.*Created by: laurentes*
We might consider to add it later on to run the test suite every night.