Please note that you filed this in General Discussions about Data Centric AI. This is really a question about DLS Course 4. I’ll move it for you.
FWIW I think we already discussed this on another thread here.
If your answer is incorrect, it’s probably not a correct conclusion that “My steps to be correct.” I added some print statements to my code to show the intersection and union areas for that test case. Here’s what I get:
inter_area 1
union_area 7
iou for intersecting boxes = 0.14285714285714285
What values do you see for the intersection and union? Why are they different from the ones I show above?