Closed grace-gu closed 5 years ago
List c
stores number of output channels of ith layer, i.e., inputs of i+1th layer. Thus to build i+1th layer we need to take c[i]
as input channel count and other parameters are obviously sit in something[i+1]
. We start from index 2 since 0th layer is simple convolution and 1st bottleneck is built separately
I'm wrong. I understand it now. Thank you.
In
model.py
, function"_make_stage"
ofMobileNet2
might be wrong. Your code:t
means expand_ratio,c
means channels,n
means repeat times ands
means stride. So you tried to repeat each bottleNeck depending on number of channels, and each time you used stride of other bottlneNecks.