当前位置:网站首页>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博客_魔改网络网络结构层出不穷,但经典网络总是大家工程上的最爱。有的时候需要对网络进行微操,直接该源码一是工作量太大;
边栏推荐
- vus.SSR在asynData函数中请求数据的注意事项
- Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
- mysql多列索引(组合索引)特点和使用场景
- 【p2p】本地抓包
- [Stanford Jiwang cs144 project] lab4: tcpconnection
- 【斯坦福计网CS144项目】Lab3: TCPSender
- [UVM practice] Chapter 2: a simple UVM verification platform (2) only driver verification platform
- MobaXterm
- 今日现货白银操作建议
- [unity] several ideas about circular motion of objects
猜你喜欢
Write CPU yourself -- Chapter 9 -- learning notes
Codeforces Global Round 19
Sign up now | oar hacker marathon phase III, waiting for your challenge
《动手学深度学习》(四) -- 卷积神经网络 CNN
[2022 ciscn] replay of preliminary web topics
IO流 file
[GUET-CTF2019]虚假的压缩包
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
今日现货白银操作建议
即刻报名|飞桨黑客马拉松第三期等你挑战
随机推荐
2022年茶艺师(中级)考试试题及模拟考试
Problem solving: unable to connect to redis
[2022 ciscn] replay of preliminary web topics
解决could not find or load the Qt platform plugin “xcb“in ““.
pytorch 参数初始化
微信小程序中使用wx.showToast()进行界面交互
dash plotly
[advanced digital IC Verification] command query method and common command interpretation of VCs tool
[ANSYS] learning experience of APDL finite element analysis
Numbers that appear only once
misc ez_ usb
2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
Wx is used in wechat applet Showtoast() for interface interaction
2022制冷与空调设备运行操作复训题库及答案
[webrtc] m98 Screen and Window Collection
Common method signatures and meanings of Iterable, collection and list
Idea add class annotation template and method template
【webrtc】m98 screen和window采集
@component(““)
LeetCode 90:子集 II