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