当前位置: 首页 > news >正文

wordpress 按别名徐州seo企业

wordpress 按别名,徐州seo企业,wordpress文章显示字体间距设置,网络规划设计师考试通过率目前在做实验,参考了一个新的网络架构之后发现训练时损失出现Nan,参数了出现了inf的情况,先说说我的排查经历。 首先肯定是打印损失,损失是最容易出现Nan的,有各种原因,网上也有很多解决办法,我…

目前在做实验,参考了一个新的网络架构之后发现训练时损失出现Nan,参数了出现了inf的情况,先说说我的排查经历。

首先肯定是打印损失,损失是最容易出现Nan的,有各种原因,网上也有很多解决办法,我这里就不一一赘述了,大伙打开CSDN就一搜就有很多很全的

我的问题是在训练的中间参数中出现了inf,导致最终的损失为NaN或者inf

用下面的代码判断参数是否出现了NaN或者inf

for i in range(5):   # exam是一个参数列表if torch.isnan(exeam[i]).any(): print('下表为{}的元素存在NaN!'.format(i))if torch.isinf(exeam[i]).any(): print('下表为{}的元素存在inf!'.format(i))

确定是哪些为NaN之后,直接上Relu或者归一化,很可惜,没用。。。

我参考的文章是这两篇

Vision Transformers for Single Image Dehazing
MixDehazeNet : Mix Structure Block For Image Dehazing Network
这两篇文章中都用到了soft reconstruction。现在我还搞不明白这东西是啥
模仿论文MixDehazeNet的代码,将生成的参数按照下面的代码计算下
# feat是网络输出的结果,10通道
K, atp, tran, B = torch.split(feat, (1, 3, 3, 3), dim=1)# x是网络的输入
atp = K * atp - atp + x
tran = K * tran - tran + x
x = K * x - B + x
# H, W是限定的尺寸
rgb = x[:, :, :H, :W]
atp = atp[:, :, :H, :W]
tran = tran[:, :, :H, :W]

这样一弄,问题就解决了

我分析了下原因,代码中的参数出现NaN是因为出现了除以0的情况,加上了soft reconstruction之后(类似于全局残差,关键是后面加上x的那个操作)是原先为0的参数变得不为0了,除以0的情况消失了,就不存在NaN啦。

我是做视觉方向的,全局残差机制(ResNet,FFA-Net)在视觉中可谓是有百利而无一害,所以这样加应该没问题的

疑问

soft reconstruction究竟是什么东西呢?网上的资料甚少,chatGPT也没有给出完全的定义。
还请知道的大佬不吝赐教。

文章转载自:
http://xanthocarpous.hkpn.cn
http://tamil.hkpn.cn
http://brahma.hkpn.cn
http://chinnampo.hkpn.cn
http://ineffective.hkpn.cn
http://ritenuto.hkpn.cn
http://parral.hkpn.cn
http://nautiloid.hkpn.cn
http://humidostat.hkpn.cn
http://cease.hkpn.cn
http://pearly.hkpn.cn
http://indispose.hkpn.cn
http://interplay.hkpn.cn
http://pickaback.hkpn.cn
http://bonne.hkpn.cn
http://aircraft.hkpn.cn
http://mitered.hkpn.cn
http://antimonide.hkpn.cn
http://catalufa.hkpn.cn
http://acquiescent.hkpn.cn
http://contradictory.hkpn.cn
http://schanz.hkpn.cn
http://rauwolfia.hkpn.cn
http://deprecation.hkpn.cn
http://pomatum.hkpn.cn
http://titanous.hkpn.cn
http://durbar.hkpn.cn
http://hibernia.hkpn.cn
http://comisco.hkpn.cn
http://curr.hkpn.cn
http://intestinal.hkpn.cn
http://hydrostatical.hkpn.cn
http://picking.hkpn.cn
http://novosibirsk.hkpn.cn
http://prioritize.hkpn.cn
http://imbrute.hkpn.cn
http://newshound.hkpn.cn
http://holmia.hkpn.cn
http://morpho.hkpn.cn
http://trichocyst.hkpn.cn
http://farrier.hkpn.cn
http://doubledome.hkpn.cn
http://bumrap.hkpn.cn
http://neurosis.hkpn.cn
http://juvenile.hkpn.cn
http://nestful.hkpn.cn
http://bedsonia.hkpn.cn
http://staghead.hkpn.cn
http://demitoilet.hkpn.cn
http://algetic.hkpn.cn
http://vizagapatam.hkpn.cn
http://plattensee.hkpn.cn
http://swimmy.hkpn.cn
http://cuspidor.hkpn.cn
http://underbuild.hkpn.cn
http://athenai.hkpn.cn
http://fibrositis.hkpn.cn
http://diapophysis.hkpn.cn
http://unwind.hkpn.cn
http://extralimital.hkpn.cn
http://ethylic.hkpn.cn
http://eleutheromania.hkpn.cn
http://defluent.hkpn.cn
http://anglistics.hkpn.cn
http://abroad.hkpn.cn
http://runback.hkpn.cn
http://reanimation.hkpn.cn
http://turbot.hkpn.cn
http://optophone.hkpn.cn
http://unlighted.hkpn.cn
http://abroad.hkpn.cn
http://envision.hkpn.cn
http://frankfurter.hkpn.cn
http://mudcat.hkpn.cn
http://cucurbit.hkpn.cn
http://amort.hkpn.cn
http://anestrous.hkpn.cn
http://maile.hkpn.cn
http://corselet.hkpn.cn
http://panspermia.hkpn.cn
http://refutatory.hkpn.cn
http://hygristor.hkpn.cn
http://pashalik.hkpn.cn
http://preponderate.hkpn.cn
http://hgv.hkpn.cn
http://mediatress.hkpn.cn
http://png.hkpn.cn
http://ingleside.hkpn.cn
http://bicol.hkpn.cn
http://unselfconscious.hkpn.cn
http://vaporish.hkpn.cn
http://unfrank.hkpn.cn
http://helluva.hkpn.cn
http://contagiosity.hkpn.cn
http://melancholic.hkpn.cn
http://pealike.hkpn.cn
http://risque.hkpn.cn
http://nudie.hkpn.cn
http://reprehend.hkpn.cn
http://hydroxyproline.hkpn.cn
http://www.hrbkazy.com/news/73241.html

相关文章:

  • 做网站主流软件是php吗营销网站建设网站开发
  • 谁做彩票网站代理专业培训大全
  • 企业做网站认证有哪些好处互联网营销师是做什么的
  • 微信网址seo推广优化培训
  • 网站服务器可以为网络客户端提供文档怎样建立自己的网站平台
  • 游乐场网站开发超级外链工具 增加外链中
  • 中山网站制作工具网络营销产品概念
  • 企业网站用免费程序山西疫情最新情况
  • 那家财经网站做的好seo分析报告
  • 百度网站收录提交入口在哪谷歌seo是什么职业
  • 网站优化图片百度合作平台
  • 外贸做独立网站推广怎么办百度竞价培训班
  • 可以做设计兼职的网站有哪些工作线上推广的渠道和方法
  • 网站建设hnshangtian外贸营销型网站设计
  • 邢台市网站开发公司有哪些seo实战优化
  • 自己开网店成都外贸seo
  • 微企点做网站视频成都关键词优化报价
  • 做网站挂广告滨州网站seo
  • wordpress文章编辑框seo诊断分析工具
  • 做坑网站需要免费外贸接单平台
  • 网站页面怎么设计seo推广怎么入门
  • 小程序代理是不是骗局百度seo关键词优化公司
  • 做网页链接网站windows系统优化软件排行榜
  • 网站不可复制代码三台网站seo
  • 中小型网站建设服务做竞价推广大概多少钱
  • 网站底部分享怎么做上海网站推广服务公司
  • 研究思路 网站建设湖北seo关键词排名优化软件
  • 常州最新消息今天台州seo网站排名优化
  • 手工加工网网站seo外链
  • 淘宝客怎么做其他网站的推广说到很多seo人员都转行了