-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Adding revamp docs for vision_transformers and regnet #5856
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d8960ce
Add docs for regnet, still need to update the comment docs on models
YosuaMichael 8d6fcfb
Fix a little typo on .rst file
YosuaMichael bf9e106
Update regnet docstring
YosuaMichael b007da4
Add vision_transformer docs, and fix typo on regnet docs
YosuaMichael be838c6
Update docstring to make sure it does not exceed 120 chars per line
YosuaMichael e0c5f7f
Merge branch 'main' into docs/vit-and-regnet
YosuaMichael 57d9b1a
Merge branch 'docs/vit-and-regnet' of github.com:YosuaMichael/vision …
YosuaMichael 4041cac
Improve formatting
YosuaMichael baf1d1a
Merge branch 'main' into docs/vit-and-regnet
YosuaMichael bbc308c
Change the new line location for vision_transformer docstring
YosuaMichael a080d7f
Merge branch 'docs/vit-and-regnet' of github.com:YosuaMichael/vision …
YosuaMichael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| RegNet | ||
| ====== | ||
|
|
||
| .. currentmodule:: torchvision.models | ||
|
|
||
| The RegNet model is based on the `Designing Network Design Spaces | ||
| <https://arxiv.org/abs/2003.13678>`_ paper. | ||
|
|
||
|
|
||
| Model builders | ||
| -------------- | ||
|
|
||
| The following model builders can be used to instantiate a RegNet model, with or | ||
| without pre-trained weights. All the model builders internally rely on the | ||
| ``torchvision.models.regnet.RegNet`` base class. Please refer to the `source code | ||
| <https://github.com/pytorch/vision/blob/main/torchvision/models/regnet.py>`_ for | ||
| more details about this class. | ||
|
|
||
| .. autosummary:: | ||
| :toctree: generated/ | ||
| :template: function.rst | ||
|
|
||
| regnet_y_400mf | ||
| regnet_y_800mf | ||
| regnet_y_1_6gf | ||
| regnet_y_3_2gf | ||
| regnet_y_8gf | ||
| regnet_y_16gf | ||
| regnet_y_32gf | ||
| regnet_y_128gf | ||
| regnet_x_400mf | ||
| regnet_x_800mf | ||
| regnet_x_1_6gf | ||
| regnet_x_3_2gf | ||
| regnet_x_8gf | ||
| regnet_x_16gf | ||
| regnet_x_32gf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| VisionTransformer | ||
| ================= | ||
|
|
||
| .. currentmodule:: torchvision.models | ||
|
|
||
| The VisionTransformer model is based on the `An Image is Worth 16x16 Words: | ||
| Transformers for Image Recognition at Scale <https://arxiv.org/abs/2010.11929>`_ paper. | ||
|
|
||
|
|
||
| Model builders | ||
| -------------- | ||
|
|
||
| The following model builders can be used to instantiate a VisionTransformer model, with or | ||
| without pre-trained weights. All the model builders internally rely on the | ||
| ``torchvision.models.vision_transformer.VisionTransformer`` base class. | ||
| Please refer to the `source code | ||
| <https://github.com/pytorch/vision/blob/main/torchvision/models/vision_transformer.py>`_ for | ||
| more details about this class. | ||
|
|
||
| .. autosummary:: | ||
| :toctree: generated/ | ||
| :template: function.rst | ||
|
|
||
| vit_b_16 | ||
| vit_b_32 | ||
| vit_l_16 | ||
| vit_l_32 | ||
| vit_h_14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.