当前位置:网站首页>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博客_魔改网络网络结构层出不穷,但经典网络总是大家工程上的最爱。有的时候需要对网络进行微操,直接该源码一是工作量太大;
边栏推荐
- After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
- Jenkins远程构建项目超时的问题
- Tongda injection 0day
- IO流 file
- [ANSYS] learning experience of APDL finite element analysis
- 测试周期被压缩?教你9个方法去应对
- 知识点滴 - 关于苹果认证MFI
- 【斯坦福计网CS144项目】Lab3: TCPSender
- 海思芯片(hi3516dv300)uboot镜像生成过程详解
- Visualization Document Feb 12 16:42
猜你喜欢

Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)

测试周期被压缩?教你9个方法去应对

【Unity】物体做圆周运动的几个思路

Ansible

科技云报道:从Robot到Cobot,人机共融正在开创一个时代

@component(““)

Hands on deep learning (IV) -- convolutional neural network CNN
![[webrtc] m98 Screen and Window Collection](/img/b1/1ca13b6d3fdbf18ff5205ed5584eef.png)
[webrtc] m98 Screen and Window Collection
![[UTCTF2020]file header](/img/e3/818e2d531a06ab90de189055f634ad.png)
[UTCTF2020]file header

leetcode:105. 从前序与中序遍历序列构造二叉树
随机推荐
Leetcode sword finger offer brush questions - day 20
[CV] Wu Enda machine learning course notes | Chapter 8
C语言通信行程卡后台系统
微信小程序中使用wx.showToast()进行界面交互
Rust Versus Go(哪种是我的首选语言?)
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
UWB learning 1
misc ez_usb
Tongda injection 0day
Detailed explanation of Kalman filter for motion state estimation
Idea add class annotation template and method template
Button wizard collection learning - mineral medicine collection and running map
开源生态|打造活力开源社区,共建开源新生态!
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences
Write CPU yourself -- Chapter 9 -- learning notes
[performance pressure test] how to do a good job of performance pressure test?
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
Explore Cassandra's decentralized distributed architecture
Most elements
【webrtc】m98 screen和window采集