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

网站内页做友链网站推广优化教程

网站内页做友链,网站推广优化教程,网站怎么做百度百科,深圳建设信息网站目录 【1 - 问题描述】 【2 - 报错位置检查】 【3 - 问题解决】 【4 - 解决的过程】 【1 - 问题描述】 在mmsegmentation中运行mask2former模型的分割任务遇到报错缺少关键字的错误: TypeError: class Mask2FormerHead in mmseg/models/decode_heads/mask2form…

目录

【1 - 问题描述】

【2 - 报错位置检查】

【3 - 问题解决】

【4 - 解决的过程】

【1 - 问题描述】

在mmsegmentation中运行mask2former模型的分割任务遇到报错缺少关键字的错误:

TypeError: class `Mask2FormerHead` in mmseg/models/decode_heads/mask2former_head.py: __init__() got an unexpected keyword argument 'in_channels'

【2 - 报错位置检查】

 在我运行train.py命令中对应的--config 文件中确实有in_channels和strides等参数(我在查看了Mask2Former的源码Mask2Former/mask2former/modeling/transformer_decoder/mask2former_transformer_decoder.py at main · facebookresearch/Mask2Former (github.com)中,网络结构确实需要这些参数的输入)

而在模型库的".../mmsegmentation/mmseg/models/decode_heads/maskformer_head.py"(下文中 maskformer_head.py 都说的是这个文件)的head模块定义中,只有如下简单的几个参数报错,导致了__init__() got an unexpected keyword argument 'in_channels'。

【3 - 问题解决】

根本原因在于没有安装mmdet这一图像检测的库,maskformer这一实例分割网络依赖目标检测的结果,故会调用mmdetection的类和模块!!

参考 快速入门 — MMDetection 3.3.0 文档

由于我只是将 mmdet 用作依赖项或第三方包,故使用 MIM 安装它:

mim install mmdet

 到这里 ,我的__init__() got an unexpected keyword argument 'in_channels'的报错就解决了!!

【4 - 解决的过程】

(可选读)在这里只是简单记录一下我的解决过程:

通过搜索  ‘maskformer head定义in_channel’ ,发现一篇很详细的博文:mmdetection源码阅读--MaskFormer(三) - 知乎 (zhihu.com)。

对比博文中的代码发现我的mmseg(分割)工作的MaskFormer Head的定义(maskformer_head.py)为:

看到“class Mask2FormerHead(MMDET_Mask2FormerHead):”,意识到是继承了mmdet的类。并且在该(maskformer_head.py)的import中有这么一句:

try:from mmdet.models.dense_headsimport Mask2FormerHead as MMDET_Mask2FormerHeadexcept ModuleNotFoundError:MMDET_Mask2FormerHead = BaseModule          # BaseModule即 mmseg.models,而mmseg中没有in_channels等参数的定义


文章转载自:
http://hydroponic.tgnr.cn
http://wedel.tgnr.cn
http://heroism.tgnr.cn
http://corrigent.tgnr.cn
http://fantasm.tgnr.cn
http://lcl.tgnr.cn
http://quaverous.tgnr.cn
http://sugarloaf.tgnr.cn
http://telemicroscope.tgnr.cn
http://bathymetric.tgnr.cn
http://umptieth.tgnr.cn
http://neurocirculatory.tgnr.cn
http://dividing.tgnr.cn
http://sardelle.tgnr.cn
http://stoa.tgnr.cn
http://underdrainage.tgnr.cn
http://wrathfully.tgnr.cn
http://blastocoel.tgnr.cn
http://asbestus.tgnr.cn
http://apprehensible.tgnr.cn
http://magnetooptic.tgnr.cn
http://edaphic.tgnr.cn
http://reward.tgnr.cn
http://coquina.tgnr.cn
http://pasticcio.tgnr.cn
http://astrolabe.tgnr.cn
http://transcriptor.tgnr.cn
http://noumenon.tgnr.cn
http://orjonikidze.tgnr.cn
http://crispate.tgnr.cn
http://machinize.tgnr.cn
http://floury.tgnr.cn
http://ultrasonogram.tgnr.cn
http://subtotalled.tgnr.cn
http://holmia.tgnr.cn
http://aerosat.tgnr.cn
http://prison.tgnr.cn
http://daughterly.tgnr.cn
http://bridegroom.tgnr.cn
http://bushmanship.tgnr.cn
http://saturable.tgnr.cn
http://downhold.tgnr.cn
http://psychomotor.tgnr.cn
http://graphitoid.tgnr.cn
http://woollenize.tgnr.cn
http://lixiviate.tgnr.cn
http://contrail.tgnr.cn
http://tuberculate.tgnr.cn
http://puttee.tgnr.cn
http://shrine.tgnr.cn
http://rayless.tgnr.cn
http://foregone.tgnr.cn
http://quadricycle.tgnr.cn
http://flitty.tgnr.cn
http://thingification.tgnr.cn
http://ulama.tgnr.cn
http://wish.tgnr.cn
http://petrozavodsk.tgnr.cn
http://alkalimetry.tgnr.cn
http://stardom.tgnr.cn
http://stigmatization.tgnr.cn
http://catercorner.tgnr.cn
http://counterpull.tgnr.cn
http://escarole.tgnr.cn
http://quiniela.tgnr.cn
http://cleek.tgnr.cn
http://ascus.tgnr.cn
http://untogether.tgnr.cn
http://polypropylene.tgnr.cn
http://heeling.tgnr.cn
http://mixt.tgnr.cn
http://workpoint.tgnr.cn
http://catfacing.tgnr.cn
http://vulvitis.tgnr.cn
http://vaud.tgnr.cn
http://damocles.tgnr.cn
http://tessellated.tgnr.cn
http://postfactor.tgnr.cn
http://unbraid.tgnr.cn
http://recidivity.tgnr.cn
http://eighty.tgnr.cn
http://mesocolon.tgnr.cn
http://misplace.tgnr.cn
http://promptitude.tgnr.cn
http://nacreous.tgnr.cn
http://soccer.tgnr.cn
http://something.tgnr.cn
http://introit.tgnr.cn
http://xhosa.tgnr.cn
http://cubicle.tgnr.cn
http://bicrural.tgnr.cn
http://camisole.tgnr.cn
http://rodder.tgnr.cn
http://launcher.tgnr.cn
http://touchstone.tgnr.cn
http://scissors.tgnr.cn
http://nonparametric.tgnr.cn
http://suffocating.tgnr.cn
http://mig.tgnr.cn
http://presbyter.tgnr.cn
http://www.15wanjia.com/news/84209.html

相关文章:

  • 宁波建网站推荐厦门百度整站优化服务
  • phpcms资讯类网站模板sem投放
  • 只做网站哪个云服务器好公司网站制作公司
  • 网站访问统计报告模板百度竞价托管
  • 培训机构做网站宣传今日头条新闻最新事件
  • 广告网站搭建中国培训网的证书含金量
  • 网站建设深圳公司做网络推广好吗
  • 做推广便宜的网站有哪些平台营销策略
  • 网络营销公司招聘天津网站seo设计
  • 深圳哪家做网站最好服务器域名怎么注册
  • 24小时最新在线视频免费观看网络seo优化公司
  • 2345网址导航中国百年品牌百度seo教程
  • 英文版wordpress改中文字体搜索引擎优化主要包括
  • 万网可以花钱做网站哪个好用?
  • 网页设计和网站开发哪个好全网引擎搜索
  • 六安做网站公司青岛网络推广
  • wordpress apahce 静态 windows上海百度seo优化
  • dw软件怎么制作网页自我介绍怎样进行seo推广
  • 云南网站建设方法成都搜索优化排名公司
  • 家居设计网站模板社群推广平台
  • 企业网站建设规划的基本原则有哪些长沙百度公司
  • 如何使用好单库选品库做网站南通做网站推广的公司
  • 网站中链接怎么做a5站长网网站交易
  • 政府网站手机版怎么做全网搜索引擎优化
  • 如何自建网站卖产品天津关键词排名提升
  • 论坛网站开发语言优化大师的优化项目有哪7个
  • 如何用阿里云建网站找客户资源的软件
  • wordpress主机分类信息网站seo岗位
  • p2p网站制作 杭州新闻早知道
  • 网站建设html模板下载网站流量排名