Giter Site home page Giter Site logo

googlenet's Introduction

GoogLeNet

这是一个基于TensorFlow多GPU的方式实现GoogLeNet的项目,数据集采用mini-imagenet,数据读取方式采用tf.data.DatasetAPI,直接从磁盘读取图片和对应对应的label,不需要将其转化为TFRecord

Introduction

  • Inception module

    Inception module

  • Inception architure

Inception architure

Requirements

  • TensorFlow 1.9
  • Python3.6

Implement Details

  • 使用tf.data.DatasetAPI构建输入数据的Pipeline,但是目前有个问题,每迭代完一个epoch,都要重新读取一次数据(尤其是shuffle阶段,如下图所示),这点有点耗时间,可能是我代码写的有点问题,目前没有解决

    train_log

  • 使用多GPU的方式进行训练,这里使用的是两个1080Ti

Dataset

  • 采用的数据集为网上整理的mini-imagenet,总共有100个类,60000张图片,原作者将其划分为训练集、验证集、测试集用于few_shot学习,这里使用sklearn重新划分为训练集和测试集,比例为7:3
  • 由于目前GitHub上关于图像分类的例子基本都是基于已经预处理好的或者特殊格式的数据集,不利于学习
  • 目前大多数的教程对数据集的读取都是将其转化为TFRecord形式,再去读取,这样对于大规模数据集来说很不现实,这样会额外占用很大的空间

Usage

  • python train.py
  • 目前测试代码不是很完善,后续更新

Result

Loss and accuracy

  • ax1_loss on gpu_0

loss

  • ax1_loss on gpu_1

loss

  • ax2_loss on gpu_0

    loss

  • ax2_loss on gpu_1

    loss

  • main_loss on gpu_0

    loss

  • main_loss on gpu_1

    loss

  • train accuracy

    accuracy

Graph

graph

Reference

googlenet's People

Contributors

huyz1117 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.