Open hamddan4 opened 3 years ago
Got an answer from google: https://stackoverflow.com/questions/64488034/inceptionresnetv2-stem-block-keras-implementation-mismatch-the-one-in-the-origin
Seems that they were just changing it during internal experiments. Nonetheless, the publishers say there are no difference in performance.
Summary
Importing the model of InceptionResnetV2 seems to be importing another model instead.
Environment
Logs or source codes for reproduction
If you do:
The first lines of the model output look something like this:
If you take a look, you first see that these layers are put sequentially, and there's no filter_concatenation done. As the original paper say, the STEM block for InceptionResnetV2 doesn't look like the one above, and the one above look more like the STEM block for InceptionResnetV1. Here below are the two STEM blocks for both architectures:
I've found an implementation for InceptionV4, and it does have the STEM block for InceptionV4 and InceptionResnetV2 well specified. The output for their lines are:
Here there are concatenations and the STEM block seems to be correct. The InceptionResnetV2 first lines seem to be the first lines of InceptionResnetV1. Why is this happening?