All problems
SSD Prior Boxes Count
Problem
Count the number of SSD prior boxes.
feature_sizes is a list of [h, w] maps and each cell has num_priors anchors. Return the total sum of h * w * num_priors.
Test cases
case 1
in: [[[38,38],[19,19],[10,10],[5,5],[3,3],[1,1]],6]
expected: 11640
case 2
in: [[[4,4]],2]
expected: 32
case 3
in: [[[2,3],[1,1]],4]
expected: 28
Starter codePython
def ssd_prior_count(feature_sizes, num_priors):
# Your code here
pass3 test cases · run your code against them in the editor