栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

BiseNetV2网络复现

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

BiseNetV2网络复现

1.代码地址

https://github.com/CoinCheung/BiSeNet

2.参考文章

https://arxiv.org/pdf/2004.02147v1.pdf

【工程测试与训练】使用BiSeNetv2测试、训练cityscapes数据集、训练自己的数据集_magic_ll的博客-CSDN博客_bisenet训练自己的数据集

3.遇到的问题

使用 【bisenetv2_city】测试图片:

将example图片放到tools文件夹中(否则会出现错误TypeError: 'NoneType' object is not subscriptable)

运行bisenetv2_city.py
打开tools/demo.py ,做如下修改:

parse.add_argument('--config', dest='config', type=str, default='../configs/bisenetv2_city.py',)
parse.add_argument('--weight-path', type=str, default='../MODEL/model_final_v2_city.pth',)
parse.add_argument('--img-path', dest='img_path', type=str, default='example.png',)

运行demo.py
结果保存为res.jpg

使用【bisenetv2_coco】测试视频:

把video视频放到tools文件夹中

运行bisenetv2_coco.py

打开tools/demo_video.py,做如下修改:

parse.add_argument('--config', dest='config', type=str, default='../configs/bisenetv2_coco.py',)
parse.add_argument('--weight-path', type=str, default='../MODEL/model_final_v2_coco.pth',)
parse.add_argument('--input', dest='input', type=str, default='video.mp4',)
parse.add_argument('--output', dest='output', type=str, default='res.mp4',)

运行demo_video.py

结果保存为res.mp4

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/858701.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号