Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练过程中如何得到iou的值 #15

Open
BianCe123 opened this issue Feb 21, 2022 · 1 comment
Open

训练过程中如何得到iou的值 #15

BianCe123 opened this issue Feb 21, 2022 · 1 comment

Comments

@BianCe123
Copy link

try:
total_miou = sum(total_iou)/len(total_iou)
except:
total_miou = 0.
print ("Mean Precision: %.3f Inter Loss: %.3f IoU: %.3f" % (prec.mean(), totalInterClassLoss.mean(),total_miou))
作者大佬,你在train_ADRNet.py 代码的196行异常捕捉这部分代码中,total_iou似乎没有定义,这样运行结果中的iou会总是等于0,关于iou的值该如何得到呢?

@zhang-pengyu
Copy link
Owner

抱歉,因为我在训练的过程中没有参考IoU的值,这部分我没有实现,可以参考Precision(),写一个计算IoU的函数,输出训练过程中的IoU值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants