打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
VGG16 in TensorFlow · Davi Frossard

Files

To test run it, download all files to the same folder and run

python vgg16.py

Introduction

VGG is a convolutional neural network model proposed by K. Simonyan and A. Zisserman from the University of Oxford in the paper “Very Deep Convolutional Networks for Large-Scale Image Recognition”  . The model achieves 92.7% top-5 test accuracy in ImageNet  , which is a dataset of over 14 million images belonging to 1000 classes.

In this short post we provide an implementation of VGG16 and the weights from the original Caffe model converted to TensorFlow  .

IMAGE CLASSIFICATION TASK

Architecture

The macroarchitecture of VGG16 can be seen in Fig. 2. We code it in TensorFlow in file vgg16.py. Notice that we include a preprocessing layer that takes the RGB image with pixels values in the range of 0-255 and subtracts the mean image values (calculated over the entire ImageNet training set).

MACROARCHITECTURE OF VGG16

Weights

We convert the Caffe weights publicly available in the author’s GitHub profile using a specialized tool. Some post-processing is done to ensure the model is in agreement with the TensorFlow standards. Finally, we arrive at the weights available in vgg16_weights.npz.

Class Names

In order to associate the outputs of the model to class names we have the mapping available in imagenet_classes.py.

Future Content

We encourage you to get familiar with this model since it is widely used and will be the baseline for future content on knowledge transfer, guided backpropagation and other interesting topics on convolutional neural networks.




VGG-16.py
 
 


 
 










本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
机器学习笔记
用Keras TensorFlow,实现ImageNet数据集日常对象的识别
深度学习入门篇--手把手教你用 TensorFlow 训练模型
11月17日论文推荐
徐国庆 --VGG--train and evaluate--result
Stanford University CS231n: Convolutional Neural Networks for Visual Recognition
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服