资源简介
Alexnet中nets以往版本包Alexnet中nets以往版本包Alexnet中nets以往版本包 包括alexnet网络

代码片段和文件信息
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License Version 2.0 (the “License“);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
“““Contains a model definition for AlexNet.
This work was first described in:
ImageNet Classification with Deep Convolutional Neural Networks
Alex Krizhevsky Ilya Sutskever and Geoffrey E. Hinton
and later refined in:
One weird trick for parallelizing convolutional neural networks
Alex Krizhevsky 2014
Here we provide the implementation proposed in “One weird trick“ and not
“ImageNet Classification“ as per the paper the LRN layers have been removed.
Usage:
with slim.arg_scope(alexnet.alexnet_v2_arg_scope()):
outputs end_points = alexnet.alexnet_v2(inputs)
@@alexnet_v2
“““
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
slim = tf.contrib.slim
trunc_normal = lambda stddev: tf.truncated_normal_initializer(0.0 stddev)
def alexnet_v2_arg_scope(weight_decay=0.0005):
with slim.arg_scope([slim.conv2d slim.fully_connected]
activation_fn=tf.nn.relu
biases_initializer=tf.constant_initializer(0.1)
weights_regularizer=slim.l2_regularizer(weight_decay)):
with slim.arg_scope([slim.conv2d] padding=‘SAME‘):
with slim.arg_scope([slim.max_pool2d] padding=‘VALID‘) as arg_sc:
return arg_sc
def alexnet_v2(inputs
num_classes=1000
is_training=True
dropout_keep_prob=0.5
spatial_squeeze=True
scope=‘alexnet_v2‘):
“““AlexNet version 2.
Described in: http://arxiv.org/pdf/1404.5997v2.pdf
Parameters from:
github.com/akrizhevsky/cuda-convnet2/blob/master/layers/
layers-imagenet-1gpu.cfg
Note: All the fully_connected layers have been transformed to conv2d layers.
To use in classification mode resize input to 224x224. To use in fully
convolutional mode set spatial_squeeze to false.
The LRN layers have been removed and change the initializers from
random_normal_initializer to xavier_initializer.
Args:
inputs: a tensor of size [batch_size height width channels].
num_classes: number of predicted classes.
is_training: whether or not the model is being trained.
dropout_keep_prob: the pr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2 2019-03-25 19:57 __init__.py
文件 103 2019-03-25 19:57 __init__.pyc
目录 0 2019-04-20 10:06 __pycache__\
文件 118 2019-03-25 19:57 __pycache__\__init__.cpython-35.pyc
文件 115 2019-04-20 10:06 __pycache__\__init__.cpython-36.pyc
文件 4673 2019-03-25 19:57 __pycache__\alexnet.cpython-35.pyc
文件 4296 2019-04-20 10:06 __pycache__\alexnet.cpython-36.pyc
文件 3625 2019-03-25 19:57 __pycache__\cifarnet.cpython-35.pyc
文件 3395 2019-04-20 10:06 __pycache__\cifarnet.cpython-36.pyc
文件 1048 2019-03-25 19:57 __pycache__\inception.cpython-35.pyc
文件 975 2019-04-20 10:06 __pycache__\inception.cpython-36.pyc
文件 7853 2019-03-25 19:57 __pycache__\inception_resnet_v2.cpython-35.pyc
文件 6993 2019-04-20 10:06 __pycache__\inception_resnet_v2.cpython-36.pyc
文件 1778 2019-03-25 19:57 __pycache__\inception_utils.cpython-35.pyc
文件 1700 2019-04-20 10:06 __pycache__\inception_utils.cpython-36.pyc
文件 9364 2019-03-25 19:57 __pycache__\inception_v1.cpython-35.pyc
文件 8183 2019-04-20 10:06 __pycache__\inception_v1.cpython-36.pyc
文件 13529 2019-03-25 19:57 __pycache__\inception_v2.cpython-35.pyc
文件 11861 2019-04-20 10:06 __pycache__\inception_v2.cpython-36.pyc
文件 16597 2019-03-25 19:57 __pycache__\inception_v3.cpython-35.pyc
文件 14589 2019-04-20 10:06 __pycache__\inception_v3.cpython-36.pyc
文件 10548 2019-03-25 19:57 __pycache__\inception_v4.cpython-35.pyc
文件 9407 2019-04-20 10:06 __pycache__\inception_v4.cpython-36.pyc
文件 2920 2019-03-25 19:57 __pycache__\lenet.cpython-35.pyc
文件 2776 2019-04-20 10:06 __pycache__\lenet.cpython-36.pyc
文件 2909 2019-03-25 19:57 __pycache__\nets_factory.cpython-35.pyc
文件 2603 2019-04-20 10:06 __pycache__\nets_factory.cpython-36.pyc
文件 4064 2019-03-25 19:57 __pycache__\overfeat.cpython-35.pyc
文件 3810 2019-04-20 10:06 __pycache__\overfeat.cpython-36.pyc
文件 8541 2019-03-25 19:57 __pycache__\resnet_utils.cpython-35.pyc
文件 8245 2019-04-20 10:06 __pycache__\resnet_utils.cpython-36.pyc
............此处省略50个文件信息
- 上一篇:通信工程外文翻译
- 下一篇:MSK的调制解调原理.
相关资源
- 语音识别LD3320开发资料包含51代码
- 人脸识别开发包免费,可商用,有演
- 基于Hilbert变换的滚动轴承故障诊断
- SourceInsight 3.5安装包和序列号,win10可
- Borland Socket Server程序 包含D6和D7源码
- pdfbox所需jar包
- R语言Igraph软件包0.7.1244355
- 金蝶K3 12.3数据库表结构(完整包)
- Navicat Premium 15汉化包.zip55438
- IAR 7.80.4的安装包
- Micrium.RTOS.1.0.0.pack
- 抓包工具 sniffer
- 图像的小波包分解
- 组态王驱动开发包3.0.0.7(中文)
- 瑞利信道的仿真,包括信号的调制,
- 压力球罐设计
- 八三编码器设计 VHDL代码 简单,包附
- Tomcat中配置数据源所需得jar包
- 图论软件包(图论里的程序)
- 51模拟SPI读写SD卡(包括Fat和Fat32文件
- ipv6网络抓包程序
- KICA的详细代码,包附高斯核,多项式
-
安装 .net fr
amework 4.0失败原因是KB9 - 安卓协议QQ源码包附模块源码
- arcgis 10.1 中文环境安装包
- linux下的发包工具sendip
- 独立团封包拦截器vip专版
- 书店销售管理系统 包附源代码
- 单片机数字时钟包附电路图 源程序
- 课程设计蔬菜大棚自动控制系统,包
评论
共有 条评论