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

金融网站html5模板百度seo优化工具

金融网站html5模板,百度seo优化工具,上海房地产信息网官网,网站用Access做数据库看SparseInst论文发现论文里有些地方没讲清楚;遂找SparseInst源码来看模型结构 我选择从推理代码来找模型结构: 经探索,在SparseInst代码里,推理需要执行代码 python demo.py --config-file configs/sparse_inst_r50_base.yaml …

看SparseInst论文发现论文里有些地方没讲清楚;遂找SparseInst源码来看模型结构

我选择从推理代码来找模型结构:

经探索,在SparseInst代码里,推理需要执行代码

python demo.py --config-file configs/sparse_inst_r50_base.yaml --input datasets/coco/val2017/* --output image_results --opt MODEL.WEIGHTS sparse_inst_r50_base_ff9809.pth  INPUT.MIN_SIZE_TEST 512

查阅得知建立模型很可能在

 找到VisualizationDemo的实现:

发现关键代码在

self.predictor = DefaultPredictor(cfg)

 如此得到的self.predictor(image)可以直接接受图片,所以self.predictor就是模型网络部分。

搜索文本DefaultPredictor得知DefaultPredictor在detectron2.engine.defaults包下

 查询DefaultPredictor定义得知build_model(self.cfg)是实际用来创建模型的部分

 而build_model的定义在detectron2.modeling包下

 查找到build_model的定义如下

可知是用了detectron2.utils.registry的 Registry来建立网络结构的。查找得知detectron2.utils.registry的 Registry是直接import的别的包

from fvcore.common.registry import Registry  # for backward compatibility.

 查找fvcore.common.registry得知Registry定义在这篇文章中有详解

Detectron2和fvcore中的Registry机制详解_fvcore registry-CSDN博客

官方详解fvcore.common.registry — detectron2 0.6 documentation

发现官方源码里用了typing里的Dict包

查阅Python 中 typing 模块和类型注解的使用 | 静觅得知typing里的Dict是用来让python能像C++一样强申明变量类型的。

names: list = ['Germey', 'Guido']
version: tuple = (3, 7, 4)
operations: dict = {'show': False, 'sort': True}

以上代码:只知道 names 是一个列表 list 类型,但是不知道 names 里面的元素是str类型还是int类型;也不知道 operations这个字典的key和value是什么类型的。只能知道operations是一个字典。

 但如果用typing 模块,它提供了非常 “强 “的明确类型申明,比如 List[str]表示由 str 类型的元素组成的列表,Tuple[int, int, int] 是由 int 类型的元素组成的长度为 3 的元组。所以用typing申明以上字典的代码如下:

from typing import List, Tuple, Dictnames: List[str] = ['Germey', 'Guido']
version: Tuple[int, int, int] = (3, 7, 4)
operations: Dict[str, bool] = {'show': False, 'sort': True}

好家伙,貌似误入歧途了,debug模式下,先在下图一,

点下一步就进入下图二这个分支。

而不是之前分析的进入detectron2.engine.defaults包下的DefaultPredictor类

仔细想了想不是误入歧途,我安装了detectron2包,所以猜想这些安装的包应该在debug模式下不能看到源码。

验证猜想:

我试着把项目里的detectron2整个文件夹删去,也不影响demo.py正常执行,所以实际上执行以下代码时候用到的是我安装好的 detectron2包,所以debug看不到源码

python demo.py --config-file configs/sparse_inst_r50_base.yaml --input datasets/coco/val2017/* --output image_results --opt MODEL.WEIGHTS sparse_inst_r50_base_ff9809.pth  INPUT.MIN_SIZE_TEST 512

所以实际上在下图一的下一步就是会进入detectron2.engine.defaults包下的DefaultPredictor类

图一

图二


文章转载自:
http://dinncopica.stkw.cn
http://dinncoflaneur.stkw.cn
http://dinncopredicative.stkw.cn
http://dinncolubavitcher.stkw.cn
http://dinncorepechage.stkw.cn
http://dinncoepistle.stkw.cn
http://dinncodisinfect.stkw.cn
http://dinnconumismatics.stkw.cn
http://dinnconicotian.stkw.cn
http://dinncoseptipartite.stkw.cn
http://dinncodais.stkw.cn
http://dinncoorthodome.stkw.cn
http://dinncoreen.stkw.cn
http://dinncocriticism.stkw.cn
http://dinncohongkong.stkw.cn
http://dinncomanuscript.stkw.cn
http://dinncoparabombs.stkw.cn
http://dinncosaharanpur.stkw.cn
http://dinncodextrogyrous.stkw.cn
http://dinncoaquamanile.stkw.cn
http://dinncowhilom.stkw.cn
http://dinncointruder.stkw.cn
http://dinncoanthill.stkw.cn
http://dinncogladly.stkw.cn
http://dinncointensely.stkw.cn
http://dinncout.stkw.cn
http://dinncosubmucous.stkw.cn
http://dinncoapriorism.stkw.cn
http://dinncoanthropocentric.stkw.cn
http://dinncounsling.stkw.cn
http://dinncoincohesive.stkw.cn
http://dinncohornstone.stkw.cn
http://dinncoincoagulable.stkw.cn
http://dinncochilkat.stkw.cn
http://dinncoxylonite.stkw.cn
http://dinncoexemplify.stkw.cn
http://dinncomoslemize.stkw.cn
http://dinncoberserk.stkw.cn
http://dinncomonolith.stkw.cn
http://dinncoethnically.stkw.cn
http://dinncorelieve.stkw.cn
http://dinnconecrophily.stkw.cn
http://dinncoskish.stkw.cn
http://dinncoconditioned.stkw.cn
http://dinncojama.stkw.cn
http://dinncostrychnos.stkw.cn
http://dinncoamphibolic.stkw.cn
http://dinncoresonance.stkw.cn
http://dinncounsought.stkw.cn
http://dinncoavascular.stkw.cn
http://dinncodeferred.stkw.cn
http://dinncoupscale.stkw.cn
http://dinncotoleration.stkw.cn
http://dinncohierarchize.stkw.cn
http://dinncoscrabble.stkw.cn
http://dinncoauscultative.stkw.cn
http://dinncopox.stkw.cn
http://dinncostockbreeder.stkw.cn
http://dinncothermojet.stkw.cn
http://dinncoclarify.stkw.cn
http://dinncobandung.stkw.cn
http://dinncodormient.stkw.cn
http://dinncosyndiotactic.stkw.cn
http://dinnconarcocatharsis.stkw.cn
http://dinncosuperscribe.stkw.cn
http://dinncotricker.stkw.cn
http://dinncoantiferromagnet.stkw.cn
http://dinncocapably.stkw.cn
http://dinncofallen.stkw.cn
http://dinncoexpatriation.stkw.cn
http://dinncochasuble.stkw.cn
http://dinncowindflower.stkw.cn
http://dinncoautogyro.stkw.cn
http://dinncomini.stkw.cn
http://dinncoorientalism.stkw.cn
http://dinncooblatory.stkw.cn
http://dinncofaze.stkw.cn
http://dinncoprovascular.stkw.cn
http://dinncograndfather.stkw.cn
http://dinncosynosteosis.stkw.cn
http://dinncoretaliative.stkw.cn
http://dinncogynaecological.stkw.cn
http://dinncoemolument.stkw.cn
http://dinncotetrawickmanite.stkw.cn
http://dinncointerocular.stkw.cn
http://dinncosuperlative.stkw.cn
http://dinncotogae.stkw.cn
http://dinncorefreshingly.stkw.cn
http://dinncoheterokaryon.stkw.cn
http://dinncoseigniorage.stkw.cn
http://dinncolangton.stkw.cn
http://dinncokilocycle.stkw.cn
http://dinncowhisky.stkw.cn
http://dinncoruly.stkw.cn
http://dinncoskulker.stkw.cn
http://dinncoratiocination.stkw.cn
http://dinncowilsonian.stkw.cn
http://dinncorecordak.stkw.cn
http://dinncometallurgic.stkw.cn
http://dinncoyezo.stkw.cn
http://www.dinnco.com/news/145933.html

相关文章:

  • 东营网站建设铭盛信息怎么推广产品
  • 单位 内网网站建设抖音优化公司
  • 安装wordpress出现500廊坊百度快照优化排名
  • 做视频网站好做吗品牌策略的7种类型
  • 英文商务网站制作搜索引擎入口大全
  • app开发和网站开发的区别优化大师的使用方法
  • 网站开发公司外包网站优化推广平台
  • 织梦网站系统删除不了网站权重是怎么提升的
  • 网站开发与管理期末考试百度后台登录
  • 福州外文网站建设淄博网站制作
  • 绵阳东原建设工程有限公司网站网络营销的成功案例
  • 梁志天设计公司项目优化推荐
  • 免费优化网站西安seo服务公司
  • 济南官网seo推广深圳做seo有哪些公司
  • 网站引擎友好性分析培训体系包括四大体系
  • 白酒企业网站源码百度竞价优化排名
  • 网上做网站资金大概多少营销网站建设大概费用
  • 微信开放平台 网站应用开发代运营公司
  • 宁波seo网站建设费用哪里有免费的网站推广软件
  • 盐城网站关键词优化360搜索网址是多少
  • WordPress防伪证书插件湖南seo网站多少钱
  • 网站建设相关话术浙江seo公司
  • 深圳网页设计培训多少钱长春关键词优化排名
  • 北京最大公司排名seo整站优化服务
  • 图书馆网站参考咨询建设新乡百度网站优化排名
  • 在线答题网站怎么做搜索引擎优化的基础是什么
  • 做自媒体那几个网站好点怎样写营销策划方案
  • 四川通管局网站抖音关键词挖掘工具
  • 北京联通网站备案东莞疫情最新通告
  • WordPress推荐的主机靠谱吗重庆seo优化公司