[Doc] Fix docbuilder - make BackboneMixin and BackboneConfigMixin importable from utils. (#29002)
* Trigger doc build * Test removing references * Importable from utils * Trigger another run on a new commit for testing
This commit is contained in:
@@ -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:
|
||||
|
||||
* [`~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.
|
||||
* [`~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.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.
|
||||
|
||||
@@ -45,11 +45,11 @@ Backbones are supported for the following models:
|
||||
|
||||
## BackboneMixin
|
||||
|
||||
[[autodoc]] utils.backbone_utils.BackboneMixin
|
||||
[[autodoc]] utils.BackboneMixin
|
||||
|
||||
## BackboneConfigMixin
|
||||
|
||||
[[autodoc]] utils.backbone_utils.BackboneConfigMixin
|
||||
[[autodoc]] utils.BackboneConfigMixin
|
||||
|
||||
## TimmBackbone
|
||||
|
||||
|
||||
Reference in New Issue
Block a user