VGG-19 和 VGG-16 的 prototxt文件

简介: VGG-19 和 VGG-16 的 prototxt文件        VGG-19 和 VGG-16 的 prototxt文件   VGG-16:prototxt 地址:https://gist.
VGG-19 和 VGG-16 的 prototxt文件
 

 

 

 

VGG-19 和 VGG-16 的 prototxt文件

 

VGG-16:
prototxt 地址:https://gist.github.com/ksimonyan/3785162f95cd2d5fee77#file-readme-md
caffemodel 地址:http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_16_layers.caffemodel

 

VGG-19:
prototxt 地址:https://gist.github.com/ksimonyan/3785162f95cd2d5fee77#file-readme-md
caffemodel 地址:http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_19_layers.caffemodel

 

 

 

VGG_16.prototxt 文件:

 

 

name: "VGG_ILSVRC_19_layer"

layer {
name: "data"
type: "ImageData"
top: "data"
top: "label"
include {
phase: TRAIN
}

image_data_param {
batch_size: 12
source: "../../fine_tuning_data/HAT_fineTuning_data/train_data_fineTuning.txt"
root_folder: "../../fine_tuning_data/HAT_fineTuning_data/train_data/"
}
}

layer {
name: "data"
type: "ImageData"
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
mirror: false
}
image_data_param {
batch_size: 10
source: "../../fine_tuning_data/HAT_fineTuning_data/test_data_fineTuning.txt"
root_folder: "../../fine_tuning_data/HAT_fineTuning_data/test_data/"
}
}

layer {
bottom:"data" 
top:"conv1_1" 
name:"conv1_1" 
type:"Convolution" 
convolution_param {
num_output:64 
pad:1
kernel_size:3 
}
}
layer {
bottom:"conv1_1" 
top:"conv1_1" 
name:"relu1_1" 
type:"ReLU" 
}
layer {
bottom:"conv1_1" 
top:"conv1_2" 
name:"conv1_2" 
type:"Convolution" 
convolution_param {
num_output:64 
pad:1
kernel_size:3
}
}
layer {
bottom:"conv1_2" 
top:"conv1_2" 
name:"relu1_2" 
type:"ReLU" 
}
layer {
bottom:"conv1_2" 
top:"pool1" 
name:"pool1" 
type:"Pooling" 
pooling_param {
pool:MAX 
kernel_size:2
stride:2 
}
}
layer {
bottom:"pool1" 
top:"conv2_1" 
name:"conv2_1" 
type:"Convolution" 
convolution_param {
num_output:128
pad:1
kernel_size:3
}
}
layer {
bottom:"conv2_1" 
top:"conv2_1" 
name:"relu2_1" 
type:"ReLU" 
}
layer {
bottom:"conv2_1" 
top:"conv2_2" 
name:"conv2_2" 
type:"Convolution" 
convolution_param {
num_output:128 
pad:1
kernel_size:3
}
}
layer {
bottom:"conv2_2" 
top:"conv2_2" 
name:"relu2_2" 
type:"ReLU" 
}
layer {
bottom:"conv2_2" 
top:"pool2" 
name:"pool2" 
type:"Pooling" 
pooling_param {
pool:MAX
kernel_size:2 
stride:2 
}
}
layer {
bottom:"pool2" 
top:"conv3_1" 
name: "conv3_1"
type:"Convolution" 
convolution_param {
num_output:256 
pad:1
kernel_size:3
}
}
layer {
bottom:"conv3_1" 
top:"conv3_1" 
name:"relu3_1" 
type:"ReLU" 
}
layer {
bottom:"conv3_1" 
top:"conv3_2" 
name:"conv3_2" 
type:"Convolution" 
convolution_param {
num_output:256
pad:1
kernel_size:3
}
}
layer {
bottom:"conv3_2" 
top:"conv3_2" 
name:"relu3_2" 
type:"ReLU" 
}
layer {
bottom:"conv3_2" 
top:"conv3_3" 
name:"conv3_3" 
type:"Convolution" 
convolution_param {
num_output:256 
pad:1 
kernel_size:3
}
}
layer {
bottom:"conv3_3" 
top:"conv3_3"
name:"relu3_3" 
type:"ReLU" 
}
layer {
bottom:"conv3_3" 
top:"conv3_4" 
name:"conv3_4" 
type:"Convolution" 
convolution_param {
num_output:256
pad:1
kernel_size:3
}
}
layer {
bottom:"conv3_4" 
top:"conv3_4" 
name:"relu3_4" 
type:"ReLU" 
}
layer {
bottom:"conv3_4" 
top:"pool3" 
name:"pool3" 
type:"Pooling" 
pooling_param {
pool:MAX 
kernel_size: 2
stride: 2
}
}
layer {
bottom:"pool3" 
top:"conv4_1" 
name:"conv4_1" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv4_1" 
top:"conv4_1" 
name:"relu4_1" 
type:"ReLU" 
}
layer {
bottom:"conv4_1" 
top:"conv4_2" 
name:"conv4_2" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv4_2" 
top:"conv4_2" 
name:"relu4_2" 
type:"ReLU" 
}
layer {
bottom:"conv4_2" 
top:"conv4_3" 
name:"conv4_3" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv4_3" 
top:"conv4_3" 
name:"relu4_3" 
type:"ReLU" 
}
layer {
bottom:"conv4_3" 
top:"conv4_4" 
name:"conv4_4" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv4_4" 
top:"conv4_4" 
name:"relu4_4" 
type:"ReLU" 
}
layer {
bottom:"conv4_4" 
top:"pool4" 
name:"pool4" 
type:"Pooling" 
pooling_param {
pool:MAX
kernel_size: 2
stride: 2
}
}
layer {
bottom:"pool4" 
top:"conv5_1" 
name:"conv5_1" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv5_1" 
top:"conv5_1" 
name:"relu5_1" 
type:"ReLU" 
}
layer {
bottom:"conv5_1" 
top:"conv5_2" 
name:"conv5_2" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv5_2" 
top:"conv5_2" 
name:"relu5_2" 
type:"ReLU" 
}
layer {
bottom:"conv5_2" 
top:"conv5_3" 
name:"conv5_3" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv5_3" 
top:"conv5_3" 
name:"relu5_3" 
type:"ReLU" 
}
layer {
bottom:"conv5_3" 
top:"conv5_4" 
name:"conv5_4" 
type:"Convolution" 
convolution_param {
num_output: 512
pad: 1
kernel_size: 3
}
}
layer {
bottom:"conv5_4" 
top:"conv5_4" 
name:"relu5_4" 
type:"ReLU" 
}
layer {
bottom:"conv5_4" 
top:"pool5" 
name:"pool5" 
type:"Pooling" 
pooling_param {
pool:MAX 
kernel_size: 2
stride: 2
}
}
layer {
bottom:"pool5" 
top:"fc6_" 
name:"fc6_" 
type:"InnerProduct" 
inner_product_param {
num_output: 4096
}
}
layer {
bottom:"fc6_" 
top:"fc6_" 
name:"relu6" 
type:"ReLU" 
}
layer {
bottom:"fc6_" 
top:"fc6_" 
name:"drop6" 
type:"Dropout" 
dropout_param {
dropout_ratio: 0.5
}
}
layer {
bottom:"fc6_" 
top:"fc7" 
name:"fc7" 
type:"InnerProduct" 
inner_product_param {
num_output: 4096
}
}
layer {
bottom:"fc7" 
top:"fc7" 
name:"relu7" 
type:"ReLU" 
}
layer {
bottom:"fc7" 
top:"fc7" 
name:"drop7" 
type:"Dropout" 
dropout_param {
dropout_ratio: 0.5
}
}
layer {
bottom:"fc7" 
top:"fc8_" 
name:"fc8_" 
type:"InnerProduct" 
inner_product_param {
num_output: 43
}
}

layer {
name: "sigmoid"
type: "Sigmoid"
bottom: "fc8_"
top: "fc8_"
}

layer {
name: "accuracy"
type: "Accuracy"
bottom: "fc8_"
bottom: "label"
top: "accuracy"
include {
phase: TEST
}
}

layer {
name: "loss"
type: "EuclideanLoss"
bottom: "fc8_"
bottom: "label"
top: "loss"
}

 

  

 

 

name: "VGG_ILSVRC_16_layer"
layers {
name: "data"
type: IMAGE_DATA
top: "data"
top: "label"
include {
phase: TRAIN
}

image_data_param {
batch_size: 80
source: "/home/wangxiao/SUN397_part/selected_sun/Sun-100/Sun_100_Labeled_Train_0.5_.txt"
root_folder: "/home/wangxiao/SUN397_part/selected_sun/Sun-100/train_image_sun_256_256/"
new_height: 224
new_width: 224
}
}

layers {
name: "data"
type: IMAGE_DATA
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
mirror: false
}
image_data_param {
batch_size: 10
source: "/home/wangxiao/SUN397_part/selected_sun/Sun-100/Sun_100_Test_0.5_.txt"
root_folder: "/home/wangxiao/SUN397_part/selected_sun/Sun-100/test_image_sun_227_227/"
new_height:224
new_width:224
}
}

layers {
  bottom: "data"
  top: "conv1_1"
  name: "conv1_1"
  type: CONVOLUTION
  convolution_param {
    num_output: 64
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv1_1"
  top: "conv1_1"
  name: "relu1_1"
  type: RELU
}
layers {
  bottom: "conv1_1"
  top: "conv1_2"
  name: "conv1_2"
  type: CONVOLUTION
  convolution_param {
    num_output: 64
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv1_2"
  top: "conv1_2"
  name: "relu1_2"
  type: RELU
}
layers {
  bottom: "conv1_2"
  top: "pool1"
  name: "pool1"
  type: POOLING
  pooling_param {
    pool: MAX
    kernel_size: 2
    stride: 2
  }
}
layers {
  bottom: "pool1"
  top: "conv2_1"
  name: "conv2_1"
  type: CONVOLUTION
  convolution_param {
    num_output: 128
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv2_1"
  top: "conv2_1"
  name: "relu2_1"
  type: RELU
}
layers {
  bottom: "conv2_1"
  top: "conv2_2"
  name: "conv2_2"
  type: CONVOLUTION
  convolution_param {
    num_output: 128
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv2_2"
  top: "conv2_2"
  name: "relu2_2"
  type: RELU
}
layers {
  bottom: "conv2_2"
  top: "pool2"
  name: "pool2"
  type: POOLING
  pooling_param {
    pool: MAX
    kernel_size: 2
    stride: 2
  }
}
layers {
  bottom: "pool2"
  top: "conv3_1"
  name: "conv3_1"
  type: CONVOLUTION
  convolution_param {
    num_output: 256
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv3_1"
  top: "conv3_1"
  name: "relu3_1"
  type: RELU
}
layers {
  bottom: "conv3_1"
  top: "conv3_2"
  name: "conv3_2"
  type: CONVOLUTION
  convolution_param {
    num_output: 256
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv3_2"
  top: "conv3_2"
  name: "relu3_2"
  type: RELU
}
layers {
  bottom: "conv3_2"
  top: "conv3_3"
  name: "conv3_3"
  type: CONVOLUTION
  convolution_param {
    num_output: 256
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv3_3"
  top: "conv3_3"
  name: "relu3_3"
  type: RELU
}
layers {
  bottom: "conv3_3"
  top: "pool3"
  name: "pool3"
  type: POOLING
  pooling_param {
    pool: MAX
    kernel_size: 2
    stride: 2
  }
}
layers {
  bottom: "pool3"
  top: "conv4_1"
  name: "conv4_1"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv4_1"
  top: "conv4_1"
  name: "relu4_1"
  type: RELU
}
layers {
  bottom: "conv4_1"
  top: "conv4_2"
  name: "conv4_2"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv4_2"
  top: "conv4_2"
  name: "relu4_2"
  type: RELU
}
layers {
  bottom: "conv4_2"
  top: "conv4_3"
  name: "conv4_3"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv4_3"
  top: "conv4_3"
  name: "relu4_3"
  type: RELU
}
layers {
  bottom: "conv4_3"
  top: "pool4"
  name: "pool4"
  type: POOLING
  pooling_param {
    pool: MAX
    kernel_size: 2
    stride: 2
  }
}
layers {
  bottom: "pool4"
  top: "conv5_1"
  name: "conv5_1"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv5_1"
  top: "conv5_1"
  name: "relu5_1"
  type: RELU
}
layers {
  bottom: "conv5_1"
  top: "conv5_2"
  name: "conv5_2"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv5_2"
  top: "conv5_2"
  name: "relu5_2"
  type: RELU
}
layers {
  bottom: "conv5_2"
  top: "conv5_3"
  name: "conv5_3"
  type: CONVOLUTION
  convolution_param {
    num_output: 512
    pad: 1
    kernel_size: 3
  }
}
layers {
  bottom: "conv5_3"
  top: "conv5_3"
  name: "relu5_3"
  type: RELU
}
layers {
  bottom: "conv5_3"
  top: "pool5"
  name: "pool5"
  type: POOLING
  pooling_param {
    pool: MAX
    kernel_size: 2
    stride: 2
  }
}
layers {
  bottom: "pool5"
  top: "fc6"
  name: "fc6"
  type: INNER_PRODUCT
  inner_product_param {
    num_output: 4096
  }
}
layers {
  bottom: "fc6"
  top: "fc6"
  name: "relu6"
  type: RELU
}
layers {
  bottom: "fc6"
  top: "fc6"
  name: "drop6"
  type: DROPOUT
  dropout_param {
    dropout_ratio: 0.5
  }
}
layers {
  bottom: "fc6"
  top: "fc7"
  name: "fc7"
  type: INNER_PRODUCT
  inner_product_param {
    num_output: 4096
  }
}
layers {
  bottom: "fc7"
  top: "fc7"
  name: "relu7"
  type: RELU
}
layers {
  bottom: "fc7"
  top: "fc7"
  name: "drop7"
  type: DROPOUT
  dropout_param {
    dropout_ratio: 0.5
  }
}
layers {
  bottom: "fc7"
  top: "fc8_"
  name: "fc8_"
  type: INNER_PRODUCT
  inner_product_param {
    num_output: 88
  }
}
layers {
  name: "accuracy"
  type: ACCURACY
  bottom: "fc8_"
  bottom: "label"
  top: "accuracy"
  include {
    phase: TEST
  }
}
layers{
  name: "loss"
  type: SOFTMAX_LOSS
  bottom: "fc8_"
  bottom: "label"
  top: "loss"
}

  

 

相关文章
|
数据采集 Java 数据库
大学里面抢课到底可行吗?我来给你彻底说明白
大学里面抢课到底可行吗?我来给你彻底说明白
|
2月前
|
存储 人工智能 自然语言处理
Codex 实践系列 Vol.05:长任务里的事实、边界和验收
本文以真实内部工具项目为例,探讨如何为AI编程助手Codex制定有效规则:将确认的事实写入SPEC.md、任务拆解与验收标准纳入TASKS.md;强调“先读规矩再编码”,通过硬性边界(如禁止覆盖公式列、遇人机验证即停)、可验证的验收条件(用真实样例校验结果)及最小完整流程验证,确保输出可靠。
185 1
|
5月前
|
人工智能 缓存 弹性计算
阿里云服务器2核4G5M199元解析:独享型u1实例,性能、适用场景、购买和续费规则介绍
阿里云通用算力型u1实例(ecs.u1-c1m2.large)2核4G、5M带宽、80G ESSD Entry云盘,活动特惠价仅199元/年(官网价3498.36元),企业新老用户同享,续费同价至2027年3月31日,每人限购1台。该实例采用独享型架构,搭载Intel至强可扩展处理器,内网带宽1Gbit/s、收发包30万PPS、云盘IOPS 1万,性能稳定,适合企业官网、中小Web应用、轻量数据库及开发测试等场景。
|
5月前
|
人工智能 搜索推荐 机器人
GEO优化的诊断与调优:解析AI时代内容策略
本文系统解析生成式引擎优化(GEO)——AI时代SEO的演进形态,聚焦内容在AI理解、信任与重构中的新挑战。依托于磊老师首创的“两大核心+四轮驱动”方法论,提供诊断盲区、量化评估与实操调整的完整路径,助力内容真正被AI看见、信任并引用。
363 0
|
7月前
|
数据采集 缓存 监控
高效获取淘宝商品详情:API 开发实现链接解析的完整技术方案
本文详解淘宝商品链接解析方案:官方API(合规稳定,需申请权限)与第三方API(快速接入,注意合规性)双路径对比。涵盖num_iid提取、接口调用、字段说明、避坑指南及选型建议,助开发者高效、安全获取商品价格、库存等动态数据。(239字)
|
机器学习/深度学习 人工智能 缓存
面向边缘通用智能的多大语言模型系统:架构、信任与编排——论文阅读
本文提出面向边缘通用智能的多大语言模型(Multi-LLM)系统,通过协同架构、信任机制与动态编排,突破传统边缘AI的局限。融合合作、竞争与集成三种范式,结合模型压缩、分布式推理与上下文优化技术,实现高效、可靠、低延迟的边缘智能,推动复杂场景下的泛化与自主决策能力。
1000 3
面向边缘通用智能的多大语言模型系统:架构、信任与编排——论文阅读
|
SQL 运维 数据挖掘
森马服饰从 Elasticsearch 到阿里云 SelectDB 的架构演进之路
森马引入阿里云 SelectDB 替换原 Elasticsearch + 业务库混合架构,统一分析 16+ 核心业务,打通 BI 组件,大幅简化数据同步链路和分析系统架构。实现复杂查询 QPS 提升 400%,响应时间缩短至秒级,亿级库存流水聚合查询缩短至 8 秒内的显著收益,有效驱动森马全渠道运营效率持续增长与业务创新。
551 0
森马服饰从 Elasticsearch 到阿里云 SelectDB 的架构演进之路
|
数据采集 安全 算法
半天百度收录新站方法
这段内容介绍了新站快速被百度收录的优化策略。首先,注重网站内容优化,包括原创高质量内容、合理布局核心关键词及清晰页面结构。其次,利用百度站长工具,如添加站点、主动推送链接和提交sitemap。再者,通过高权重平台发布链接、社交媒体推广及友情链接交换构建外部链接。此外,保持服务器稳定、定期更新内容并正确设置robots.txt可提升抓取频率。部署SSL安全证书有助于提高安全性与排名。最后,强调需保持耐心,因收录时间受多种因素影响,通常1-7天内可被收录。
926 3
|
编解码 算法 数据安全/隐私保护
基于BP译码的LDPC误码率matlab仿真,分析不同码长,码率,迭代次数以及信道类型对译码性能的影响
本内容介绍基于MATLAB 2022a的低密度奇偶校验码(LDPC)仿真,展示了完整的无水印仿真结果。LDPC是一种逼近香农限的信道编码技术,广泛应用于现代通信系统。BP译码算法通过Tanner图上的消息传递实现高效译码。仿真程序涵盖了不同Eb/N0下的误码率计算,并分析了码长、码率、迭代次数和信道类型对译码性能的影响。核心代码实现了LDPC编码、BPSK调制、高斯信道传输及BP译码过程,最终绘制误码率曲线并保存数据。 字符数:239
1028 5
|
人工智能 Serverless API
AI 创业及变现新思路:零门槛 AI 绘图,定制 ComfyUI Serverless API 应用
为了帮助用户高效率、低成本应对企业级复杂场景,本文介绍 ComfyUI API Serverless 版解决方案,通过使用该方案,用户可以充分利用 ComfyUI +Serverless 技术优势快速开发上线 AI 绘画应用,期待为广大开发者 AI 绘画创业及变现提供思路。
2025 9

热门文章

最新文章