Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
bob.db.mnist
bob.db.mnist
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • bob
  • bob.db.mnistbob.db.mnist
  • Issues
  • #5

Closed
Open
Opened Apr 19, 2018 by Manuel Günther@mguenther
  • Report abuse
  • New issue
Report abuse New issue

Images 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 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?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: bob/bob.db.mnist#5