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.

NASNet misleading ValueError when include_top=False and weights #78

Open
@Waffleboy

Description

@Waffleboy

Setting a different image size with include_top = False and weights = 'imagenet' as below,

base_model_transfer = NASNetLarge(input_shape=(image_shape[0],image_shape[1],3), include_top=False,\
                         weights='imagenet', input_tensor=None, \
                         pooling='max', classes=train_generator.num_classes)

I obtain a ValueError
ValueError: When setting include_top=Trueand loadingimagenetweights,input_shape should be (331, 331, 3).

Seems strange when include_top is set to False. Should this not work?

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