deeplearning.ai-note
deeplearning.ai-note copied to clipboard
Convolutional Neural Networks :第三周编程Autonomous driving application - Car detection - v3--iou() function, error

答案与“Expected output"一样,但是打分为0

is it working?
官方Course Discussions Note on iou() function, redux
但是我还没有找到解决方法!
https://blog.csdn.net/qq_25436597/article/details/79390960
还是不行,好崩溃啊!!!
可参考:https://blog.csdn.net/qq_31119155/article/details/80930433
xi1 = max(box1[0],box2[0])
yi1 = max(box1[1],box2[1])
xi2 = min(box1[2],box2[2])
yi2 = min(box1[3],box2[3])
inter_area = max((yi2 - yi1),0) * max((xi2 - xi1),0)
xi1 = max(box1[0],box2[0]) yi1 = max(box1[1],box2[1]) xi2 = min(box1[2],box2[2]) yi2 = min(box1[3],box2[3]) inter_area = max((yi2 - yi1),0) * max((xi2 - xi1),0)
You are right! Thanks