tensorflow / models

Models and examples built with TensorFlow
Other
77.05k stars 45.77k forks source link

what's the mean of the 'layer_15/expansion_output' ? #5577

Closed 1453042287 closed 4 years ago

1453042287 commented 6 years ago

System information

Describe the problem

in the /models/research/object_detection/models/ssd_mobilenet_v2_feature_extractor.py line 108 : feature_map_layout = { 'from_layer': ['layer_15/expansion_output', 'layer_19', '', '', '', ''], 'layer_depth': [-1, -1, 512, 256, 256, 128], 'use_depthwise': self._use_depthwise, 'use_explicit_padding': self._use_explicit_padding, } what's the mean of the 'layer_15/expansion_output'? thanks a lot!

netanel-s commented 6 years ago

See MobileNetV2 paper. The inverted bottleneck block has three components, one of which is expansion layer with ReLU6. This means that the feature map used as input for the detection head is the expanded tensor (x6 in the paper and the implementation), and not the output of the entire block (i.e. after the x6 projection).

1453042287 commented 6 years ago

@netanel-s thanks a lot ,but i do exactly what the MobileNetV2 paper said, but the ssdlite is not working well with a low mAP and a huge model size, almost 10M params,why?

netanel-s commented 6 years ago

Why do you claim so? The checkpoint of ssdlite_mobilenet_v2_coco_2018_05_09 weights about 17.3MB which corresponds to about 4.3M parameters.

1453042287 commented 6 years ago

@netanel-s emmmmm.... because i write the code myself, and i don't konw what's wrong, it's weird! any suggestions would be appreciate!

wt-huang commented 5 years ago

It is slow when running ssdlite in general and low mAP certainly doesn't help. Are you getting any errors?

1453042287 commented 5 years ago

@wt-huang i got no errors, maybe some tricks i don't know

tensorflowbutler commented 4 years ago

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.