All Projects → knjcode → Cifar2png

knjcode / Cifar2png

Convert CIFAR-10 and CIFAR-100 datasets into PNG images

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Cifar2png

Currencyviewer
Short python framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
Stars: ✭ 13 (-79.69%)
Mutual labels:  converter
Cfw2ofw Helper
Providing aid in converting video games.
Stars: ✭ 44 (-31.25%)
Mutual labels:  converter
Genshin Audio Extractor
Convert Genshin Impact audio files into a playable format
Stars: ✭ 54 (-15.62%)
Mutual labels:  converter
Ts To Goog
A tool that converts TypeScript definitions into Closure Compiler externs.
Stars: ✭ 20 (-68.75%)
Mutual labels:  converter
Transpec
The RSpec syntax converter
Stars: ✭ 997 (+1457.81%)
Mutual labels:  converter
Ost2pst
OST2PST - converts Outlook OST files to PST format
Stars: ✭ 46 (-28.12%)
Mutual labels:  converter
Asciidoctor Pdf
📃 Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Stars: ✭ 868 (+1256.25%)
Mutual labels:  converter
I18n Generator
i18n json files generator for node, web browser and command line
Stars: ✭ 60 (-6.25%)
Mutual labels:  converter
Ssfconv
Sogou input method skin file (.ssf file) converter, supports conversion to fcitx or fcitx5 format.
Stars: ✭ 44 (-31.25%)
Mutual labels:  converter
Shc
Shell script compiler
Stars: ✭ 1,050 (+1540.63%)
Mutual labels:  converter
Tdeskdroid
Telegram Desktop to Android theme converter
Stars: ✭ 28 (-56.25%)
Mutual labels:  converter
Jsontocodable
A generating tool from Raw JSON to Codable (Swift4) text written in Swift4.
Stars: ✭ 33 (-48.44%)
Mutual labels:  converter
Php54 Arrays
Command-line script to convert between array() and PHP 5.4's short syntax []
Stars: ✭ 47 (-26.56%)
Mutual labels:  converter
Mxnet2caffe
convert model from mxnet to caffe without lossing precision
Stars: ✭ 20 (-68.75%)
Mutual labels:  converter
Gulp Markdown Pdf
Markdown to PDF
Stars: ✭ 56 (-12.5%)
Mutual labels:  converter
Node Html To Text
Advanced html to text converter
Stars: ✭ 872 (+1262.5%)
Mutual labels:  converter
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-29.69%)
Mutual labels:  converter
Node Quill Converter
Convert HTML to a Quill Delta or a Quill Delta to HTML
Stars: ✭ 61 (-4.69%)
Mutual labels:  converter
Tsvoiceconverter
A Swift VoiceConverter between AMR format and WAV format
Stars: ✭ 58 (-9.37%)
Mutual labels:  converter
Docs
The API for generating high quality images from HTML/CSS.
Stars: ✭ 49 (-23.44%)
Mutual labels:  converter

cifar2png

Convert CIFAR-10 or CIFAR-100 dataset into PNG images.

Install

$ pip install cifar2png

Usage

$ cifar2png <dataset> <output_dir> [--name-with-batch-index]

  • dataset: Specify cifar10 or cifar100 or cifar100superclass
  • output_dir: Path to save PNG converted dataset (The directory will be created automatically).
  • --name-with-batch-index: (optional) Name image files based on batch name and index of cifar10/cifar100 dataset.

Automatically download cifar-10-python.tar.gz or cifar-100-python.tar.gz to the current directory from CIFAR-10 and CIFAR-100 datasets when you run this tool.

Examples

CIFAR-10

$ cifar2png cifar10 path/to/cifar10png

CIFAR-10 with naming option

$ cifar2png cifar10 path/to/cifar10png --name-with-batch-index

CIFAR-100

$ cifar2png cifar100 path/to/cifar100png

CIFAR-100 with superclass

$ cifar2png cifar100superclass path/to/cifar100png

Structure of output directory

CIFAR-10 and CIFAR-100

PNG images of CIFAR-10 are saved in 10 subdirectories of each label under the test and train directories as below.
(CIFAR-100 are saved in the same way with 100 subdirectories)

$ tree -d path/to/cifar10png
path/to/cifar10png
├── test
│   ├── airplane
│   ├── automobile
│   ├── bird
│   ├── cat
│   ├── deer
│   ├── dog
│   ├── frog
│   ├── horse
│   ├── ship
│   └── truck
└── train
    ├── airplane
    ├── automobile
    ├── bird
    ├── cat
    ├── deer
    ├── dog
    ├── frog
    ├── horse
    ├── ship
    └── truck
$ tree path/to/cifar10png/test/airplane
path/to/cifar10png/test/airplane
├── 0001.png
├── 0002.png
├── 0003.png
(..snip..)
├── 0998.png
├── 0999.png
└── 1000.png

When dataset created using the --name-with-batch-index option.

$ tree path/to/cifar10png/train/airplane
path/to/cifar10png/train/airplane
├── data_batch_1_index_0029.png
├── data_batch_1_index_0030.png
├── data_batch_1_index_0035.png
(..snip..)
├── data_batch_5_index_9941.png
├── data_batch_5_index_9992.png
└── data_batch_5_index_9994.png

CIFAR-100 with superclass

PNG images of CIFAR-100 with superclass are saved in each label directories under the superclass subdirectories under the test and train directories as below.

$ tree -d path/to/cifar100png
path/to/cifar100png
├── test
│   ├── aquatic_mammals
│   │   ├── beaver
│   │   ├── dolphin
│   │   ├── otter
│   │   ├── seal
│   │   └── whale
│   ├── fish
│   │   ├── aquarium_fish
│   │   ├── flatfish
│   │   ├── ray
│   │   ├── shark
│   │   └── trout
│   ├── flowers
│   │   ├── orchid
│   │   ├── poppy
│   │   ├── rose
│   │   ├── sunflower
│   │   └── tulip
(..snip..)
    ├── trees
    │   ├── maple_tree
    │   ├── oak_tree
    │   ├── palm_tree
    │   ├── pine_tree
    │   └── willow_tree
    ├── vehicles_1
    │   ├── bicycle
    │   ├── bus
    │   ├── motorcycle
    │   ├── pickup_truck
    │   └── train
    └── vehicles_2
        ├── lawn_mower
        ├── rocket
        ├── streetcar
        ├── tank
        └── tractor
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].