JABS Vision Backbones
Backbone modules for jabs-vision models.
TimmBackbone
Bases: Module
Wrapper around timm models for multi-scale feature extraction.
This module creates a feature extractor from any timm model that supports
features_only=True, returning feature maps at multiple scales.
Example
channels
property
Number of channels at each feature level.
strides
property
Spatial reduction (stride) at each feature level.
forward(x)
Extract multi-scale features.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
Tensor
|
Input tensor of shape (B, C, H, W). |
required |
Returns:
| Type | Description |
|---|---|
list[Tensor]
|
List of feature tensors, one per output index. |