Skip to content
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

Customizing model card fields #212

Closed
smrnvdhy opened this issue May 13, 2022 · 5 comments
Closed

Customizing model card fields #212

smrnvdhy opened this issue May 13, 2022 · 5 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@smrnvdhy
Copy link

Thank you for your amazing work on the model card! I'm wondering how I can go about customizing the model card fields. In particular, I'm interested in adding my own fields (For example, a custom trust score, whether this model has passed the review board, etc.) in a new section of the model card.

If the fields are already there, I could modify the jinja template to create the model card that I want. However, I'm not sure how I can create these new fields myself. Would appreciate your help!

@Starborn
Copy link

Starborn commented May 14, 2022 via email

@smrnvdhy
Copy link
Author

@Starborn I believe this should contain the information you mentioned: https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/base_model_card_field.py

Could you share an example of how you created your own model card fields?

@Starborn
Copy link

Starborn commented May 19, 2022 via email

@codesue codesue added the enhancement New feature or request label Nov 10, 2022
@bahadirery
Copy link

Greetings,

I managed to add custom fields. You have to modify the proto, core.py, model_card.py, and the default template file then build from the source. Check this repo: https://github.com/bahadirery/model-card-toolkit.git

@codesue
Copy link
Collaborator

codesue commented Dec 6, 2022

Hi everyone, thank you for your feedback and suggestions here! I'm going to close this issue as a duplicate of #186. Please join in on the discussion in #186 or subscribe to it for updates on this work.

The short answer is that right now, creating custom model card fields isn't supported, but we're exploring ways to make this possible.

@codesue codesue added duplicate This issue or pull request already exists and removed enhancement New feature or request labels Dec 6, 2022
@codesue codesue closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@codesue codesue added the enhancement New feature or request label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants