cifar-10g

Stylised images in CIFAR-10 categories to test generalisation

https://github.com/bdevans/cifar-10g

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: sciencedirect.com, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Stylised images in CIFAR-10 categories to test generalisation

Basic Info
  • Host: GitHub
  • Owner: bdevans
  • License: other
  • Default Branch: main
  • Homepage:
  • Size: 4.22 MB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created about 5 years ago · Last pushed about 4 years ago
Metadata Files
Readme License Citation

README.md

CIFAR-10G

Stylised out-of-domain generalisation test images for models trained with the CIFAR-10 dataset.

DOI License: CC BY-NC-SA 4.0

CIFAR-10G © 2021 by Benjamin D. Evans is licensed under Attribution-NonCommercial-ShareAlike 4.0 International. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Instructions

Clone the repository into your workspace with the following command:

git clone https://github.com/bdevans/CIFAR-10G.git

Within the 224x224 subdirectory, there is a directory for each type of test set:

['line_drawings', 'line_drawings_inverted', 'contours', 'contours_inverted', 'silhouettes', 'silhouettes_inverted']

Within each of these directories are ten subdirectories named after the CIFAR-10 categories:

('airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck')

Each of these category directories contains ten examples of each type of image. This allows the images to be loaded (and processed) on the fly with e.g. a Keras ImageDataGenerator using the flow_from_directory method.

The directory structure with the 224x224 folder is illustrated below.

. ├── contours │ ├── airplane │ │ ├── airplane001.png │ │ ├── airplane002.png │ │ ├── airplane003.png │ │ └── ... │ ├── automobile │ │ ├── automobile001.png │ │ ├── automobile002.png │ │ ├── automobile003.png │ │ └── ... │ ├── bird │ │ └── ... │ └── ... ├── contours_inverted │ ├── airplane │ ├── automobile │ ├── bird │ └── ... ├── line_drawings │ └── ... ├── line_drawings_inverted │ └── ... ├── silhouettes │ └── ... └── silhouettes_inverted └── ...

Example Images

| Image | Line Drawings | Line Drawings (inverted) | Silhouettes | Silhouettes (inverted) | Contours | Contours (inverted) | | ----- | ------------- | ------------------------ | ----------- | ---------------------- | -------- | ------------------- | | airplane001 | | | | | | | | automobile001 | | | | | | | | bird001 | | | | | | | | cat001 | | | | | | | | deer001 | | | | | | | | dog001 | | | | | | | | frog001 | | | | | | | | horse001 | | | | | | | | ship001 | | | | | | | | truck001 | | | | | | |

Citation

If you use this dataset in your own research, we would appreciate you citing the journal article for which it was created (in addition to the Zenodo archive reference). The accompanying repository for the model code is here: https://github.com/bdevans/BioNet.

@article{EvansBiologicalConvolutions, title = {Biological convolutions improve DNN robustness to noise and generalisation}, journal = {Neural Networks}, volume = {148}, pages = {96-110}, year = {2022}, issn = {0893-6080}, doi = {https://doi.org/10.1016/j.neunet.2021.12.005}, url = {https://www.sciencedirect.com/science/article/pii/S0893608021004780}, author = {Benjamin D. Evans and Gaurav Malhotra and Jeffrey S. Bowers}, keywords = {Deep learning, Convolutional neural network, Biological constraint, Gabor filter, Noise tolerance, Generalisation}, abstract = {Deep Convolutional Neural Networks (DNNs) have achieved superhuman accuracy on standard image classification benchmarks. Their success has reignited significant interest in their use as models of the primate visual system, bolstered by claims of their architectural and representational similarities. However, closer scrutiny of these models suggests that they rely on various forms of shortcut learning to achieve their impressive performance, such as using texture rather than shape information. Such superficial solutions to image recognition have been shown to make DNNs brittle in the face of more challenging tests such as noise-perturbed or out-of-distribution images, casting doubt on their similarity to their biological counterparts. In the present work, we demonstrate that adding fixed biological filter banks, in particular banks of Gabor filters, helps to constrain the networks to avoid reliance on shortcuts, making them develop more structured internal representations and more tolerance to noise. Importantly, they also gained around 20--35% improved accuracy when generalising to our novel out-of-distribution test image sets over standard end-to-end trained architectures. We take these findings to suggest that these properties of the primate visual system should be incorporated into DNNs to make them more able to cope with real-world vision and better capture some of the more impressive aspects of human visual perception such as generalisation.} }

Owner

  • Name: Ben Evans
  • Login: bdevans
  • Kind: user
  • Location: Brighton, UK
  • Company: University of Sussex

Computational Neuroscientist (s̶t̶i̶l̶l̶ ̶i̶n̶ ̶b̶e̶t̶a̶) and Python evangelist! Likes include open-science, machine learning and Jack Russell Terriers! 🐶

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this dataset, please cite it as below."
authors:
- family-names: "Evans"
  given-names: "Benjamin D."
  orcid: "https://orcid.org/0000-0002-1734-6070"
title: "CIFAR-10G"
version: 1.0.0
doi: 10.5281/zenodo.5648918
date-released: 2021-11-05
url: "https://github.com/bdevans/CIFAR-10G"

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 22
  • Total Committers: 1
  • Avg Commits per committer: 22.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ben Evans b****s@g****m 22

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels