Skip to content

Conversation

@datumbox
Copy link
Contributor

@datumbox datumbox commented Jan 6, 2022

Enhance the meta-data information stored for each model by including the following info:

  • Type of task
  • Network architecture
  • Year of publication
  • Number of parameters

cc @datumbox @bjuncek

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jan 6, 2022

💊 CI failures summary and remediations

As of commit 8cae313 (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.

url="https://download.pytorch.org/models/maskrcnn_resnet50_fpn_coco-bf2d0c1e.pth",
transforms=CocoEval,
meta={
"task": "image_object_detection",
Copy link
Member

Choose a reason for hiding this comment

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

I'm unclear on what to put here.
Indeed, this model could also be categorized as image_instance_segmentation. Maybe having task be a list would be of help here?

Ensuring that this is adapted with paperswithcode categorization would be good as well https://paperswithcode.com/paper/mask-r-cnn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah same here. I'll leave as is for now and review in more detail on the future.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM

@datumbox datumbox merged commit b5aa091 into pytorch:main Jan 6, 2022
@datumbox datumbox deleted the models/enhanced_meta branch January 6, 2022 14:20
facebook-github-bot pushed a commit that referenced this pull request Jan 8, 2022
Summary:
* Improved meta-data for models.

* Addressing comments from code-review.

* Add parameter count.

* Fix linter.

Reviewed By: sallysyw

Differential Revision: D33479281

fbshipit-source-id: 7a133324ed5a289a0ac89522b0d4a38ce8b201e0


_COMMON_META = {
"task": "image_object_detection",
Copy link
Contributor

Choose a reason for hiding this comment

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

image keypoint detection. I guess?

@oke-aditya
Copy link
Contributor

Could we add size of the model in MBs #4996 ? Anything about FLOPS of computation / Runtime statistics too would be cool.

(Although it's hard to say as runtime highly various from system to system and configs)

@datumbox
Copy link
Contributor Author

@oke-aditya Sounds like good suggestions. Would you like to send a PR that adds model sizes in? Ideally with a unit-test to compare the declared meta-data size with the actual size (you are guaranteed that they are available locally but you might need to be creative on how to do this; I got some similar checks here in this PR for model size in params).

FLOPS would be really cool, but it's not always straightforward to automatically estimate this for all models (for example detection models). I'm open for any ideas. BTW we've got a feedback issue at #5088 were we keep proposals about the new API centralized. Feel free to post more there if you have additional ideas. :)

@oke-aditya
Copy link
Contributor

I would need some time for this as it's been hectic week at office :( (It's literally odd to code in Java in morning and python at night)

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.

4 participants