Skip to content

Image classification using the Python version of the Cifar-10 dataset

Notifications You must be signed in to change notification settings

Miracle287/Cifar10-Classify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CifarClassifier

​ Python版Cifar-10数据集图片分类程序

​ 由于官方给出的Demo使用Cifar-10数据集是二进制的。本项目使用Python版Cifar-10数据集写了一个图片分类的Demo

环境

  • Python环境:Anaconda, Python 3.6.8

  • 深度学习框架:TensorFlow、PyTorch

  • IDE环境: PyCharm

使用

在inputs.py中配置相关目录:

# 训练数据目录
input_train_dir = "input/train"
# 测试数据目录
input_test_dir = "input/test"
# 图片缓存目录
input_train_image_origin_dir = "input/train/image_origin"
input_test_image_origin_dir = "input/test/image_origin"
# 数据增强的图片目录
input_train_image_distorted_dir = "input/train/image_distorted"
input_test_image_distorted_dir = "input/test/image_distorted"

# 模型结果输出目录
output_dir = "output"

生成数据集:

python inputs.py

开始训练:

python train.py

About

Image classification using the Python version of the Cifar-10 dataset

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages