If someone reuses the same naming pattern for their ResNet50 bottleneck model, they are likely to overwrite the existing (non-bottleneck) ResNet50_model, breaking the code of dog_detector().
It's better to replace the name with something more telling (and less confusing), like VGG16_dog_model or VGG16_bottleneck_model.
If someone reuses the same naming pattern for their ResNet50 bottleneck model, they are likely to overwrite the existing (non-bottleneck) ResNet50_model, breaking the code of dog_detector().
It's better to replace the name with something more telling (and less confusing), like VGG16_dog_model or VGG16_bottleneck_model.