Hi, this is the first time using this tool so, I apologize in advance if I don’t make myself clear 
I have a problem with the exercise 1 of the first assignment of the week, I run my code and according to the grading cell I should’ve got these values:
scores.shape == (1789,)
boxes.shape == (1789, 4)
classes.shape == (1789,)
but instead, I got these ones:
scores.shape = (1402,)
boxes.shape = (1402, 4)
classes.shape = (1402,)
and I’m lost on what I’m doing wrong. I will post my code if I needed to but for now, I prefer to stick to do rules
may someone give me advice or insights?
btw all the other values ( scores[2] , boxes[2] , classes[2] ) are the same with the ones I got
Solve it. I didn’t read the instruction well
That’s great news! I was going to suggest that it was a problem computing the filtering mask. I added some print statements to my code in that function and here’s my output:
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'>
sum(filtering_mask) = 1789
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!
So what that shows is that 1789 of the values in the filtering mask are True out of the total of 19 * 19 * 5 = 1805.
1 Like
Thank you so much! the problem was that I wasn’t filtering right 