• 大小: 1.41MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-10
  • 语言: Python
  • 标签: tensorflow  cifar-10  

资源简介

使用tensorflow做cifar-10的分类识别,使用的语言是python

资源截图

代码片段和文件信息

# -*- coding: utf8 -*-
# author: ronniecao
import os
from src.data.cifar10 import Corpus

os.environ[‘CUDA_DEVICE_ORDER‘] = ‘PCI_BUS_ID‘
os.environ[‘CUDA_VISIBLE_DEVICES‘] = ‘3‘

cifar10 = Corpus()

def basic_cnn():
    from src.model.basic_cnn import ConvNet
    convnet = ConvNet(n_channel=3 n_classes=10 image_size=24)
    # convnet.debug()
    convnet.train(dataloader=cifar10 backup_path=‘backup/cifar10-v14/‘ batch_size=128 n_epoch=500)
    # convnet.test(dataloader=cifar10 backup_path=‘backup/cifar10-v2/‘ epoch=5000 batch_size=128)
    # convnet.observe_salience(batch_size=1 n_channel=3 num_test=10 epoch=2)
    # convnet.observe_hidden_distribution(batch_size=128 n_channel=3 num_test=1 epoch=980)
    
def plain_cnn():
    from src.model.plain_cnn import

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\
     文件         955  2017-09-29 06:56  cifar10-tensorflow-master\.gitignore
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v1\
     文件       48467  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v1\cifar10-v1.png
     文件      583361  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v1\cifar10-v1.txt
     文件        2433  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v1\log_analyzer.py
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\
     文件       49464  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\cifar10-v11.png
     文件       50900  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\cifar10-v12.txt
     文件       50920  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\cifar10-v13.txt
     文件       50919  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\cifar10-v14.txt
     文件       50920  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\cifar10-v15.txt
     文件        3918  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v11\log_analyzer.py
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\
     文件       64760  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\cifar10-v16.png
     文件       51225  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\cifar10-v16.txt
     文件       51572  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\cifar10-v17.txt
     文件       50905  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\cifar10-v18.txt
     文件       51206  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\cifar10-v19.txt
     文件        4523  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v16\log_analyzer.py
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\
     文件       99036  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\cifar10-v2.png
     文件      563325  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\cifar10-v2.txt
     文件      567491  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\cifar10-v3.txt
     文件      588542  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\cifar10-v4.txt
     文件      575387  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\cifar10-v5.txt
     文件        5422  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v2\log_analyzer.py
     目录           0  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v20\
     文件       57922  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v20\cifar10-v20.png
     文件       51199  2017-09-29 06:56  cifar10-tensorflow-master\exps\cifar10-v20\cifar10-v20.txt
............此处省略41个文件信息

评论

共有 条评论