当前位置:网站首页>paddlepaddle 29 无模型定义代码下动态修改网络结构(relu变prelu,conv2d变conv3d,2d语义分割模型改为3d语义分割模型)
paddlepaddle 29 无模型定义代码下动态修改网络结构(relu变prelu,conv2d变conv3d,2d语义分割模型改为3d语义分割模型)
2022-07-07 04:32:00 【万里鹏程转瞬至】
paddle框架提供了许多的模型,但是在无穷无尽的工程需求中,这远远是不够的。有些时候我们需要按照自己的情况修改网络结构,如单输入变成双输入,单输出变成多输出。这只是输入输出的调整,此外还有网络细节的调整,如将网络的激活函数从relu改为prelu、elu、switch等;如将2d的语义分割模型改为3d的分割模型。如果有模型结构定义的源码,修改网络结构自然是很简单的。但是,很多的时候模型定义代码过于复杂,而且属于库代码的一部分,是不能轻易修改的,为此博主实现了在不改模型定义代码的前提下,修改模型结构。这些操作都属于网络结构魔改的范畴,关于该操作,更为详细的参考教程可以参考以下链接。pytorch 26 科学炼丹(训练)方式之——魔改网络(给模型做外科手术,实现module的删除、修改与添加,forward流程的修改)_万里鹏程转瞬至的博客-CSDN博客_魔改网络网络结构层出不穷,但经典网络总是大家工程上的最爱。有的时候需要对网络进行微操,直接该源码一是工作量太大;
边栏推荐
- Iterable、Collection、List 的常见方法签名以及含义
- Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
- UWB learning 1
- pytorch 参数初始化
- Leetcode-543. Diameter of Binary Tree
- Idea add class annotation template and method template
- What is the interval in gatk4??
- Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
- [OBS] win capture requires winrt
- 微博发布案例
猜你喜欢

You Li takes you to talk about C language 6 (common keywords)
![[webrtc] m98 Screen and Window Collection](/img/b1/1ca13b6d3fdbf18ff5205ed5584eef.png)
[webrtc] m98 Screen and Window Collection

Use and analysis of dot function in numpy

2022制冷与空调设备运行操作复训题库及答案
![[GUET-CTF2019]虚假的压缩包](/img/a2/7da2a789eb49fa0df256ab565d5f0e.png)
[GUET-CTF2019]虚假的压缩包

开源生态|打造活力开源社区,共建开源新生态!

探索Cassandra的去中心化分布式架构

【斯坦福计网CS144项目】Lab4: TCPConnection
![[unity] several ideas about circular motion of objects](/img/84/e70c6696629dbe17ace011553f43ff.png)
[unity] several ideas about circular motion of objects

The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
随机推荐
After the interview, the interviewer roast in the circle of friends
智联+影音,AITO问界M7想干翻的不止理想One
科技云报道:从Robot到Cobot,人机共融正在开创一个时代
UWB learning 1
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
【webrtc】m98 screen和window采集
dash plotly
[mathematical notes] radian
[UTCTF2020]file header
What are the positions of communication equipment manufacturers?
Leetcode 43 String multiplication (2022.02.12)
IO流 file
What is the difference between TCP and UDP?
PHP exports millions of data
微信小程序中的路由跳转
解决问题:Unable to connect to Redis
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
[2022 actf] Web Topic recurrence
Leetcode-543. Diameter of Binary Tree
Pytest+allure+jenkins installation problem: pytest: error: unrecognized arguments: --alluredir