Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Unnecessary ValueError in MobileNetV2 #92

@see--

Description

@see--

MobileNetV2 has 1 / 32 output stride if include_top=False. It should work with input shapes that are a multiple of 32.

from keras.applications.mobilenet_v2 import MobileNetV2
from keras.applications.resnet50 import ResNet50

input_shape = (224, 448, 3)

# this works
resnet = ResNet50(input_shape=input_shape, weights='imagenet', include_top=False)

# raises ValueError
try:
  mobilenet = MobileNetV2(input_shape=input_shape, weights='imagenet', include_top=False)
except ValueError as e:
  print(e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions