- 博客(3)
- 问答 (1)
- 收藏
- 关注
转载 Pytorch语义分割准确率计算
import numpy as npclass Evaluator(object): def __init__(self, num_class): self.num_class = num_class self.confusion_matrix = np.zeros((self.num_class,)*2) def Pixel_Accuracy(self): Acc = np.diag(self.confusion_matrix).su
2022-04-10 17:00:23
673
原创 Python度分秒与度的互转
分享一下自己# 度转度分秒def duTdfm(x): d = int(x) f = int((x - d) * 60) / 100 s = (x - d - (int((x - d) * 60) / 60)) * 3600 / 10000 return d + f + s# 度分秒转度def dfmTdu(x): d = int(x) # 度 x = 3.2118 a = x - d
2022-04-09 11:15:40
4933
3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人