{"id":13737981,"url":"https://github.com/knjcode/cifar2png","last_synced_at":"2026-01-18T15:08:18.849Z","repository":{"id":32590907,"uuid":"137341162","full_name":"knjcode/cifar2png","owner":"knjcode","description":"Convert CIFAR-10 and CIFAR-100 datasets into PNG images","archived":false,"fork":false,"pushed_at":"2024-04-15T08:12:59.000Z","size":13,"stargazers_count":143,"open_issues_count":4,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-05T07:14:08.514Z","etag":null,"topics":["cifar-10","cifar-100","converter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knjcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-14T10:06:49.000Z","updated_at":"2025-12-21T04:15:10.000Z","dependencies_parsed_at":"2024-06-21T04:18:36.770Z","dependency_job_id":"0e2dad5f-7c89-4977-b1e2-856f3b2ff6d4","html_url":"https://github.com/knjcode/cifar2png","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"141fb36a1b42d6590a87fbab9f5b35be8f91789b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/knjcode/cifar2png","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knjcode%2Fcifar2png","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knjcode%2Fcifar2png/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knjcode%2Fcifar2png/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knjcode%2Fcifar2png/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knjcode","download_url":"https://codeload.github.com/knjcode/cifar2png/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knjcode%2Fcifar2png/sbom","scorecard":{"id":564583,"data":{"date":"2025-08-11","repo":{"name":"github.com/knjcode/cifar2png","commit":"141fb36a1b42d6590a87fbab9f5b35be8f91789b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"49 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: PYSEC-2021-41 / GHSA-3wvg-mj6g-m9cv","Warn: Project is vulnerable to: PYSEC-2020-77 / GHSA-3xv8-3j54-hgrp","Warn: Project is vulnerable to: PYSEC-2020-80 / GHSA-43fq-w8qq-v88h","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2021-35 / GHSA-57h3-9rgr-c24m","Warn: Project is vulnerable to: PYSEC-2020-172 / GHSA-5gm3-px64-rw72","Warn: Project is vulnerable to: PYSEC-2021-331 / GHSA-7534-mm45-c74v","Warn: Project is vulnerable to: PYSEC-2021-137 / GHSA-77gc-v2xv-rvvh","Warn: Project is vulnerable to: PYSEC-2021-92 / GHSA-7r7m-5h27-29hp","Warn: Project is vulnerable to: PYSEC-2020-78 / GHSA-8843-m7mw-mxqm","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2021-36 / GHSA-8xjq-8fcg-g5hw","Warn: Project is vulnerable to: PYSEC-2021-42 / GHSA-95q3-8gr9-gm8w","Warn: Project is vulnerable to: PYSEC-2021-317 / GHSA-98vv-pw6r-q6q4","Warn: Project is vulnerable to: PYSEC-2021-38 / GHSA-9hx2-hgq2-2g4f","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: PYSEC-2020-76 / GHSA-cqhg-xjhh-p8hf","Warn: Project is vulnerable to: PYSEC-2021-40 / GHSA-f4w8-cv6p-x6r5","Warn: Project is vulnerable to: PYSEC-2021-69 / GHSA-f5g8-5qq7-938w","Warn: Project is vulnerable to: PYSEC-2021-139 / GHSA-g6rj-rv7j-xwp4","Warn: Project is vulnerable to: PYSEC-2021-71 / GHSA-hf64-x4gq-p99h","Warn: Project is vulnerable to: PYSEC-2020-84 / GHSA-hj69-c76v-86wr","Warn: Project is vulnerable to: PYSEC-2021-94 / GHSA-hjfx-8p6c-g7gx","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: GHSA-jgpv-4h4c-xhw3","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2021-37 / GHSA-mvg9-xffr-p774","Warn: Project is vulnerable to: PYSEC-2021-39 / GHSA-p43w-g3c5-g5mq","Warn: Project is vulnerable to: PYSEC-2020-83 / GHSA-p49h-hjvm-jg3h","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2021-93 / GHSA-q5hq-fp76-qmrc","Warn: Project is vulnerable to: PYSEC-2020-82 / GHSA-r7rm-8j6h-r933","Warn: Project is vulnerable to: PYSEC-2021-138 / GHSA-rwv7-3v45-hg29","Warn: Project is vulnerable to: PYSEC-2020-81 / GHSA-vcqg-3p29-xw73","Warn: Project is vulnerable to: PYSEC-2020-79 / GHSA-vj42-xq3r-hr3r","Warn: Project is vulnerable to: PYSEC-2021-70 / GHSA-vqcj-wrf2-7v73","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:38:04.822Z","repository_id":32590907,"created_at":"2025-08-20T14:38:04.822Z","updated_at":"2025-08-20T14:38:04.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28539008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cifar-10","cifar-100","converter"],"created_at":"2024-08-03T03:02:08.031Z","updated_at":"2026-01-18T15:08:18.832Z","avatar_url":"https://github.com/knjcode.png","language":"Python","readme":"cifar2png\n=========\n\nConvert CIFAR-10 or CIFAR-100 dataset into PNG images.\n\n\n# Install\n\n```bash\n$ pip install cifar2png\n```\n\n\n# Usage\n\n`$ cifar2png \u003cdataset\u003e \u003coutput_dir\u003e [--name-with-batch-index]`\n\n- `dataset`: Specify `cifar10` or `cifar100` or `cifar100superclass`\n- `output_dir`: Path to save PNG converted dataset (The directory will be created automatically).\n- `--name-with-batch-index`: (optional) Name image files based on batch name and index of cifar10/cifar100 dataset.\n\nAutomatically 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.\n\n\n# Examples\n\n\n## CIFAR-10\n\n`$ cifar2png cifar10 path/to/cifar10png`\n\n\n## CIFAR-10 with naming option\n\n`$ cifar2png cifar10 path/to/cifar10png --name-with-batch-index`\n\n\n## CIFAR-100\n\n`$ cifar2png cifar100 path/to/cifar100png`\n\n\n## CIFAR-100 with superclass\n\n`$ cifar2png cifar100superclass path/to/cifar100png`\n\n\n# Structure of output directory\n\n## CIFAR-10 and CIFAR-100\n\nPNG images of CIFAR-10 are saved in 10 subdirectories of each label under the `test` and `train` directories as below.  \n(CIFAR-100 are saved in the same way with 100 subdirectories)\n\n```bash\n$ tree -d path/to/cifar10png\npath/to/cifar10png\n├── test\n│   ├── airplane\n│   ├── automobile\n│   ├── bird\n│   ├── cat\n│   ├── deer\n│   ├── dog\n│   ├── frog\n│   ├── horse\n│   ├── ship\n│   └── truck\n└── train\n    ├── airplane\n    ├── automobile\n    ├── bird\n    ├── cat\n    ├── deer\n    ├── dog\n    ├── frog\n    ├── horse\n    ├── ship\n    └── truck\n```\n\n```bash\n$ tree path/to/cifar10png/test/airplane\npath/to/cifar10png/test/airplane\n├── 0001.png\n├── 0002.png\n├── 0003.png\n(..snip..)\n├── 0998.png\n├── 0999.png\n└── 1000.png\n```\n\nWhen dataset created using the `--name-with-batch-index` option.\n\n```bash\n$ tree path/to/cifar10png/train/airplane\npath/to/cifar10png/train/airplane\n├── data_batch_1_index_0029.png\n├── data_batch_1_index_0030.png\n├── data_batch_1_index_0035.png\n(..snip..)\n├── data_batch_5_index_9941.png\n├── data_batch_5_index_9992.png\n└── data_batch_5_index_9994.png\n```\n\n## CIFAR-100 with superclass\n\nPNG images of CIFAR-100 with superclass are saved in each label directories under the superclass subdirectories under the test and train directories as below.\n\n```\n$ tree -d path/to/cifar100png\npath/to/cifar100png\n├── test\n│   ├── aquatic_mammals\n│   │   ├── beaver\n│   │   ├── dolphin\n│   │   ├── otter\n│   │   ├── seal\n│   │   └── whale\n│   ├── fish\n│   │   ├── aquarium_fish\n│   │   ├── flatfish\n│   │   ├── ray\n│   │   ├── shark\n│   │   └── trout\n│   ├── flowers\n│   │   ├── orchid\n│   │   ├── poppy\n│   │   ├── rose\n│   │   ├── sunflower\n│   │   └── tulip\n(..snip..)\n    ├── trees\n    │   ├── maple_tree\n    │   ├── oak_tree\n    │   ├── palm_tree\n    │   ├── pine_tree\n    │   └── willow_tree\n    ├── vehicles_1\n    │   ├── bicycle\n    │   ├── bus\n    │   ├── motorcycle\n    │   ├── pickup_truck\n    │   └── train\n    └── vehicles_2\n        ├── lawn_mower\n        ├── rocket\n        ├── streetcar\n        ├── tank\n        └── tractor\n```\n\n\n[CIFAR-10 and CIFAR-100 datasets]: https://www.cs.toronto.edu/~kriz/cifar.html\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknjcode%2Fcifar2png","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknjcode%2Fcifar2png","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknjcode%2Fcifar2png/lists"}