labelme勾目标检测COCO数据格式,mmdetection框架训练

环境安装
将labelme安装到anaconda环境中,激活环境,输入labelme打开软件
使用mmdetection训练自己的coco数据集(免费分享自制数据集文件)
还需要修改模型参数里面的num_class类别数量

mmdetection测试单张/多张图片并保存

(lableme) PS C:\Users\XXX\Desktop\labelme\examples\instance_segmentation> python labelme2coco.py --labels labels.txt

labels.txt文件里面除了
ignore
background
这两类还要将
labelme里面的类别输入进去,比如我的labels.txt的内容

__ignore__
_background_
window0
window1
window2
window3
window4
window5
window6
window7
window8
window9

我修改了labelme2coco.py中的输入输出地址

def main():
    parser = argparse.ArgumentParser(
        formatter_class=argparse.ArgumentDefaultsHelpFormatter
    )
    parser.add_argument("--input_dir", default="U:/labelme/test/",help="input annotated directory")
    parser.add_argument("--output_dir",default="U:/labelme_out/", help="output dataset directory")
    parser.add_argument("--labels", help="labels file", required=True)
    parser.add_argument(
        "--noviz", help="no visualization", action="store_true"
    )
    args = parser.parse_args()

mmdetection预测结果保存labelme格式

mmdetection tool/test.py预测COCO数据格式json

python test.py  ../configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py work_dirs/faster_rcnn_r50_fpn_1x_coco/latest.pth --format-only --option "jsonfile_prefix=./result.json"

wandb用户登陆以及安装注册及解决训练模型报API错误
在Quickstart模块中获取用于登陆的私钥
在这里插入图片描述
mmdetection中wandb不输出valuation的问题解决方法
可视化/绘制多个mmdetection的log.json日志文件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值