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

Conversation

@taehoonlee
Copy link
Contributor

The architectures of NASNetMobile and NASNetLarge differ depending on whether input_shape is even or odd, while the architectures of the other networks are independent to input_shape.

Thus, there are issues (keras-team/keras#10109, keras-team/keras#12013) when using NASNetLarge(weights='imagenet', include_top=False). This is because input_shape becomes (None, None, 3) when include_top=False. The None shape makes the proposed NASNet architecture different.

This PR sets the default shape for NASNet when include_top=False as (224, 224, 3) or (331, 331, 3) by changing require_flatten.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant