Skip to content

Rename prototype weight names to comply with PEP8 #5257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 24, 2022

Conversation

yoshitomo-matsubara
Copy link
Contributor

@datumbox @zhiqwang @pmeier
As discussed in #5088, #5088 (comment) and #5244, I renamed all the weights names, following PEP8.

@facebook-github-bot
Copy link

facebook-github-bot commented Jan 22, 2022

💊 CI failures summary and remediations

As of commit 5effa36 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

The changes look great @yoshitomo-matsubara. Thanks for your help. I've left only 1 comment that needs to be addressed. Please have a look and let me know.

Finally, could you please add a test on test/test_prototype_models.py to confirm that all available weights have enums that are capitalized? This will help us catch cases were we missed to change them and also enforce this style on the future. You can do this on the test_schema_meta_validation where we already loop throw all the w values of the weights_enum. Thanks in advance.

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

@yoshitomo-matsubara All look great. Only one remaining comment on the test and we are good to merge.

You can ignore the 2 failing tests as they are not caused by your PR. One is caused by an unrelated PR that we will revert and one by an upstream bug on Core which is being investigated.

@yoshitomo-matsubara
Copy link
Contributor Author

@datumbox Thank you for the feedback. I think all the unit tests were passed.

@datumbox
Copy link
Contributor

@yoshitomo-matsubara Somehow the test was dropped, so I've just added it back. I'll merge once everything passes.

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution @yoshitomo-matsubara.

We'll need to update the article to reflect upon the changes. I'll ping the team to do it on my side. :)

Edit: The article was updated pytorch/pytorch.github.io#915

@datumbox datumbox changed the title Rename Weights Rename prototype weight names to comply with PEP8 Jan 24, 2022
@datumbox datumbox closed this Jan 24, 2022
@datumbox datumbox reopened this Jan 24, 2022
@datumbox datumbox merged commit 8886a3c into pytorch:main Jan 24, 2022
@datumbox datumbox linked an issue Jan 24, 2022 that may be closed by this pull request
@yoshitomo-matsubara
Copy link
Contributor Author

@datumbox
Thank you for the reviews!

facebook-github-bot pushed a commit that referenced this pull request Jan 26, 2022
Summary:
* renamed ImageNet weights

* renamed COCO weights

* renamed COCO with VOC labels weights

* renamed Kinetics 400 weights

* rename default with DEFAULT

* update test

* fix typos

* update test

* update test

* update test

* indent as w was weight_enum

* revert

* Adding back the capitalization test

Reviewed By: jdsgomes, prabhat00155

Differential Revision: D33739379

fbshipit-source-id: cec33c6bd6be59f4f44bd2adc9906eaa9e1c6696

Co-authored-by: Vasilis Vryniotis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEEDBACK] Multi-weight support prototype API
3 participants