-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Model doc revamp - first PR #5821
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
Conversation
@@ -6,7 +6,7 @@ ifneq ($(EXAMPLES_PATTERN),) | |||
endif | |||
|
|||
# You can set these variables from the command line. | |||
SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS) | |||
SPHINXOPTS = -j auto $(EXAMPLES_PATTERN_OPTS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -W flag will make the docs error on warnings. It's good to have to avoid having broken references. But since I removed almost all of the models.rst
file, a few of the refs (e.g. from gallery examples) are broken. To avoid noise I'm removing the flag for now.
Will definitely put it back once everything is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a TODO or create an issue to avoid forgetting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @NicolasHug.
Overall the proposal looks good. I've added a few comments below, let me know your thoughts.
@@ -6,7 +6,7 @@ ifneq ($(EXAMPLES_PATTERN),) | |||
endif | |||
|
|||
# You can set these variables from the command line. | |||
SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS) | |||
SPHINXOPTS = -j auto $(EXAMPLES_PATTERN_OPTS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a TODO or create an issue to avoid forgetting?
docs/source/models.rst
Outdated
|
||
torchvision.models.optical_flow.raft_large | ||
torchvision.models.optical_flow.raft_small | ||
TODO: Something similar to classification models: list of models + table of weights |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to consider Quantized Classification models like a separate submodule (similar to detection and classification) and add documentations, tables with accuracies etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as in principle this fixes most of the major issues of the docs.
I recommend resolving #5821 (comment) prior merging to avoid leaving the live docs in a bad state.
Summary: * First PR for model doc revamp * Deactivating fail on warning, temporarily * Remove commnet * Minor changes * Typos * Added TODO in Makefile * Keep old models.rst file intact, move new docs into new models_new.rst file Reviewed By: jdsgomes, NicolasHug Differential Revision: D36095696 fbshipit-source-id: ac5219c6b41b904b3c1197626e60788a215ede82
This PR introduces our new models docs, as discussed and designed in previous PRs (see below) . For now I just wrote docs for VGG and ResNet models, and generated the weights table for classification.
Rendered docs: https://output.circle-artifacts.com/output/job/aaddb6cd-567c-4552-90fa-296878ff5ab1/artifacts/0/docs/models.html
We now have:
TODO, in future PRs:
Closes #5741
Closes #5577
Closes #5575