当前位置:网站首页>High-Resolution Network (篇二):MMpose代码讲解之Backbone及关键点Detector部分
High-Resolution Network (篇二):MMpose代码讲解之Backbone及关键点Detector部分
2022-07-16 08:34:00 【@会飞的毛毛虫】
Backbone部分
- Backbone部分的代码在mmpose\models\backbones\hrnet.py中,该脚本文件调用了ResNet的BasicBlock和Bottleneck,我们只需要关注HRNet类即可,其构造参数解释如下:
extra (dict): HRNet中每一个Stage的详细配置 in_channels (int): 输入图像的通道数,默认为3 conv_cfg (dict): 卷积层的配置 norm_cfg (dict): 归一化层的配置 norm_eval (bool): 是否将归一化层设为冻结模式,训练阶段默认为False with_cp (bool): 是否使用预训练权重 zero_init_residual (bool):是否对resblock中的最后一个norm层使用零值初始化 frozen_stages (int): 设置拿个stage冻结权重,-1 表示不冻结任何权重 - 从原始Image到Stage之间会经过Stem结构,Stem结构由两个步距为2的3×3卷积组成,用来将分辨率降为输入的1/4,其代码部分如下所示:
self.norm1_name, norm1 = build_norm_layer(self.norm_cfg, 64, postfix=1) # norm1 = BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, trac
边栏推荐
- 軟件測試面試:請說一下你工作中發現的最有價值的bug?
- Blue Hat Cup 2022 preliminaries electronic forensics
- JS calculation accuracy and data format
- Jiulian technology development board is officially integrated into the openharmony backbone
- 图解数组计算模块NumPy下(三角函数、四舍五入函数(around)、取整、将弧度转化为角度、统计分析函数、中位数、数组的排序、argsort()、lexsort())
- 软件测试面试:请说一下你工作中发现的最有价值的bug?
- 怎么设置域名解析?
- Sword finger offer 46: Translate numbers into strings
- Entrevue de Test logiciel: Pourriez - vous me dire quel est le bogue le plus précieux que vous avez trouvé dans votre travail?
- 可再生金融ReFi:提供对地球有利的技术和金融系统
猜你喜欢

HCIP --- OSPF综合实验

使用IDEA搭建WebService服务

大咖说*计算讲谈社|三星堆奇幻之旅:只有云计算才能带来的体验

What is the basic task of MRP

Principle analysis of Rex engine of osgearth (one, two, eight) Rex engine and layer projection and their relationship

深度学习中一些注意力机制的介绍以及pytorch代码实现

Introduction of some attention mechanisms in deep learning and implementation of pytorch code

AutoJs学习-应用列表

NFT玩家的共识分片:金钱、社区与文化

AutoJs学习-变声器模板
随机推荐
Which is the most suitable price system for the three cloud rendering platforms (I)
剑指offer 46:把数字翻译成字符串
Excellent open source attack and defense weapon project of the whole network
A lightweight tracking method based on unique identifier of timestamp
ZABBIX detailed introduction
Brush questions of binary tree (I)
[training Day1] spy dispatch [minimum spanning tree]
使用 tcpkill 阻断指定 TCP 连接的数据包
UE4/5中的旋转:三个欧拉角Picth、Yaw、Roll及FRotator
EasyExcel的Converter注册问题
Autojs learning TTS grabs voice red envelopes
The pits encountered using arcpy (3)
What is the basic task of MRP
指定 TLS 1.3 和 Ciphers 以提升安全性及性能
Analysis on the necessity and key functions of the construction of video monitoring platform for comprehensive building
图解数组计算模块NumPy下(三角函数、四舍五入函数(around)、取整、将弧度转化为角度、统计分析函数、中位数、数组的排序、argsort()、lexsort())
AcWing 133. 蚯蚓
What are the core technologies of okcc call center system
大咖说*计算讲谈社|三星堆奇幻之旅:只有云计算才能带来的体验
软件测试面试:请说一下你工作中发现的最有价值的bug?