Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
stevhliu committed Jan 31, 2024
1 parent a967ca7 commit 5c7bce5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/autoclass_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ For vision tasks, an image processor processes the image into the correct input
<figcaption class="mt-2 text-center text-sm text-gray-500">A Swin backbone with multiple stages for outputting a feature map.</figcaption>
</div>

The [`AutoBackbone`] lets you use pretrained models as backbones to get feature maps from different stages of the backbone. You should specify one of the following parameters in [`~AutoBackbone.from_pretrained`]:
The [`AutoBackbone`] lets you use pretrained models as backbones to get feature maps from different stages of the backbone. You should specify one of the following parameters in [`~PretrainedConfig.from_pretrained`]:

* `out_indices` is the index of the layer you'd like to get the feature map from
* `out_features` is the name of the layer you'd like to get the feature map from
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/create_a_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ model = MaskFormerForInstanceSegmentation(config)
</hfoption>
</hfoptions>

[timm](https://hf.co/docs/timm/index) models are loaded with `TimmBackbone` and `TimmBackboneConfig`.
[timm](https://hf.co/docs/timm/index) models are loaded with [`TimmBackbone`] and [`TimmBackboneConfig`].

```python
from transformers import TimmBackboneConfig, TimmBackbone
Expand Down
4 changes: 2 additions & 2 deletions docs/source/en/main_classes/backbones.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ rendered properly in your Markdown viewer.

A backbone is a model used for feature extraction for higher level computer vision tasks such as object detection and image classification. Transformers provides an [`AutoBackbone`] class for initializing a Transformers backbone from pretrained model weights, and two utility classes:

* [`BackboneMixin`] enables initializing a backbone from Transformers or [timm](https://hf.co/docs/timm/index) and includes functions for returning the output features and indices.
* [`BackboneConfigMixin`] sets the output features and indices of the backbone configuration.
* [`~utils.backbone_utils.BackboneMixin`] enables initializing a backbone from Transformers or [timm](https://hf.co/docs/timm/index) and includes functions for returning the output features and indices.
* [`~utils.backbone_utils.BackboneConfigMixin`] sets the output features and indices of the backbone configuration.

[timm](https://hf.co/docs/timm/index) models are loaded with the [`TimmBackbone`] and [`TimmBackboneConfig`] classes.

Expand Down

0 comments on commit 5c7bce5

Please sign in to comment.