yolov5笔记

yolov5笔记
1、export.py是用来pt文件转换为onnx格式的
在这里插入图片描述

https://zhuanlan.zhihu.com/p/172121380

2、torch_utils.py是用来计算fps的(还没有验证)
在这里插入图片描述

https://www.bilibili.com/video/BV1JR4y1g77H?p=9&spm_id_from=pageDriver

3、红外数据集的融合

https://www.bilibili.com/video/BV1ih411b7K2/?spm_id_from=autoNext
https://github.com/thfylsty

4、contiguous_params包的下载
https://github.com/PhilJd/contiguous_pytorch_params

5、WARNING: NMS time limit 10.0nm
在这里插入图片描述
6、yolov5调用视频流
在这里插入图片描述
注意,要连接同一个wifi(手机和电脑)
在这里插入图片描述
7、labelme环境
输入LabelIMG
在这里插入图片描述
在这里插入图片描述
总结:
在这里插入图片描述

8、画出不同的P-R、P-Confidence、R-Confidence曲线
我这里是三个类别

def plot_mc_curve(px, py, save_dir='mc_curve.png', names=(), xlabel='Confidence', ylabel='Metric'):
    # Metric-confidence curve
    fig, ax = plt.subplots(1, 1, figsize=(9, 6), tight_layout=True)

    if 0 < len(names) < 21:  # display per-class legend if < 21 classes
        for i, y in enumerate(py):
            if i==0:
                ax.plot(px, y, linestyle='--',linewidth=1, label=f'{names[i]}')  # plot(confidence, metric)
            elif i==1:
                ax.plot(px, y, linestyle='-.',linewidth=1, label=f'{names[i]}')  # plot(confidence, metric)
            elif i==2:
                ax.plot(px, y, linestyle=':',linewidth=1, label=f'{names[i]}')  # plot(confidence, metric)
            else:
                ax.plot(px, y,linewidth=1, label=f'{names[i]}')  # plot(confidence, metric)
    else:
        ax.plot(px, py.T, linewidth=1, color='grey')  # plot(confidence, metric)

    y = py.mean(0)
    ax.plot(px, y, linewidth=3, color='blue', label=f'all classes {y.max():.2f} at {px[y.argmax()]:.3f}')
    ax.set_xlabel(xlabel)
    ax.set_ylabel(ylabel)
    ax.set_xlim(0, 1)
    ax.set_ylim(0, 1)
    plt.legend(bbox_to_anchor=(1.04, 1), loc="upper left")
    fig.savefig(Path(save_dir), dpi=250)
    plt.close()

在这里插入图片描述
9、pycharm激活问题

Certificate used to sign the license is not signed by JetBrains root certificate (2)

解决:

Windows:%APPDATA%\JetBrains\<product><version>
(例子:C:\Users\JohnS\AppData\Roaming\JetBrains\IntelliJIdea2021.3)

https://intellij-support.jetbrains.com/hc/zh-cn/articles/360014727620
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值