Skip to content

Add mobilenet_v3 to slim_vision_model_test.py - #5650

Merged
asaadaldien merged 5 commits into
mainfrom
ataei-mobile_net_v3_test
Apr 28, 2021
Merged

asaadaldien merged 5 commits into
mainfrom
ataei-mobile_net_v3_test

Conversation

@asaadaldien

Copy link
Copy Markdown
Contributor

I looked into tfhub and they do have mobilenet_v3, adding the classification model here.

I looked into tfhub and they do have mobilenet_v3, adding the
classification model here.
@asaadaldien
asaadaldien force-pushed the ataei-mobile_net_v3_test branch from e701d27 to d6146d5 Compare April 28, 2021 00:05

@phoenix-meadowlark phoenix-meadowlark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad support for this finally propagated. Please add the model to the BUILD file configuration as well.

Comment on lines +59 to +63
def get_mode(model_name):
if model_name.startswith('mobilenet_v3'):
return 'classification/5'
# Classification mode; 4 - is a format of the model (SavedModel TF v2).
return 'classification/4'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def get_mode(model_name):
if model_name.startswith('mobilenet_v3'):
return 'classification/5'
# Classification mode; 4 - is a format of the model (SavedModel TF v2).
return 'classification/4'
def get_mode(model_name):
if model_name.startswith('mobilenet_v3'):
return 'classification/5'
# Classification mode; 4 - is a format of the model (SavedModel TF v2).
return 'classification/4'

Add two empty lines between functions for yapf.

@antiagainst antiagainst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks Ahmed for adding this!

@asaadaldien

Copy link
Copy Markdown
Contributor Author

Glad support for this finally propagated. Please add the model to the BUILD file configuration as well.

I didn't but CI doesn't seem to run this test!

@phoenix-meadowlark

Copy link
Copy Markdown
Contributor

I didn't but CI doesn't seem to run this test!

It doesn't in OSS (because the slim vision tests require external data), but it does run internally. Geoffrey was mentioning fixing this, but the keras applications version of MobileNetV3 does run on the OSS CI and should cover most failure cases.

@asaadaldien
asaadaldien merged commit 95b3030 into main Apr 28, 2021
@asaadaldien
asaadaldien deleted the ataei-mobile_net_v3_test branch April 28, 2021 23:04
simon-camp pushed a commit to simon-camp/iree that referenced this pull request Apr 29, 2021
I looked into tfhub and they do have mobilenet_v3, adding the classification model here.
copybara-service Bot pushed a commit that referenced this pull request Apr 29, 2021
* 36522d9 Rotating instead of shifting to deal with overflow. (#5674)
* e130e79 Merge pull request #5671 from ThomasRaoux/handle_vectorization
* 011ffe0 Merge google -> main (#5663)
* 6e16e38 Add vector transfer canonicalization patterns (#5664)
* 95b3030 Add mobilenet_v3 to slim_vision_model_test.py (#5650)
* 0c30c12 Fixing iree_cc_test android goo to use the proper executable name. (#5660)
* cb54341 Adding initial executable benchmarking tool. (#5604)
* 1de68ee Adding iree_task_executor_create_from_flags. (#5616)
* db7f611 Merge pull request #5602 from google/benvanik-flags

COPYBARA_INTEGRATE_REVIEW=#5673 from ThomasRaoux:main-to-google c08d5bd
PiperOrigin-RevId: 371123718
iree-github-actions-bot pushed a commit that referenced this pull request Apr 29, 2021
* 36522d9 Rotating instead of shifting to deal with overflow. (#5674)
* e130e79 Merge pull request #5671 from ThomasRaoux/handle_vectorization
* 011ffe0 Merge google -> main (#5663)
* 6e16e38 Add vector transfer canonicalization patterns (#5664)
* 95b3030 Add mobilenet_v3 to slim_vision_model_test.py (#5650)
* 0c30c12 Fixing iree_cc_test android goo to use the proper executable name. (#5660)
* cb54341 Adding initial executable benchmarking tool. (#5604)
* 1de68ee Adding iree_task_executor_create_from_flags. (#5616)
* db7f611 Merge pull request #5602 from google/benvanik-flags

PiperOrigin-RevId: 371123718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants