Hello,
I have an error in my code (see below) for the implementation of the function yolo_filter_boxes but I don’t understand what it is.
Th error says
### START CODE HERE
# mentor edit: code removed
### END CODE HERE
return scores, boxes, classes
TMosh
2
Please do not post your code on the Forum. The course Honor Code does not allow it. I have edited your message.
Check if your logic is correct in the line that computes the filtering_mask.
I think something pretty fundamental is wrong. All the shapes you show are completely off. Here’s what I get for the shapes and types on that test:
boxes.shape (19, 19, 5, 4)
boxes.dtype <dtype: 'float32'>
box_scores.shape (19, 19, 5, 80)
box_scores.dtype <dtype: 'float32'>
box_classes.shape (19, 19, 5)
box_classes.dtype <dtype: 'int64'>
box_class_scores.shape (19, 19, 5)
box_class_scores.dtype <dtype: 'float32'>
filtering_mask.shape (19, 19, 5)
filtering_mask.dtype <dtype: 'bool'>
scores[2] = 9.270486
boxes[2] = [ 4.6399336 3.2303846 4.431282 -2.202031 ]
classes[2] = 8
scores.shape = (1789,)
boxes.shape = (1789, 4)
classes.shape = (1789,)
All tests passed!
Please start by comparing all the shapes from the earlier parts of the logic to see where things first go off the rails.
1 Like
I’m sorry for my code TMosh !
Thank you
Thank you a lot ! Indeed it was after the filtering mask !