ResNetBackboneSelection
Helpers & Utilities · AiDotNet.ComputerVision.Detection.Backbones
Picks the ResNet a detector builds from its options’ BackboneType.
For Beginners
The backbone is the part of a detector that turns an image into features. This lets you choose a smaller or larger ResNet; if you name something that is not a ResNet, the model keeps the one its paper used.
How It Works
DETR, DINO and DBNet build a ResNet backbone, and each one ignored the options’ Backbone
and built a ResNet-50: the papers’ default. Backbone defaults
to CSPDarknet for the YOLO family, which none of these can use, so a backbone that is not a ResNet
still selects the paper’s ResNet-50 and nothing changes for existing callers. A backbone that names a
ResNet is now honoured: DBNet’s paper reports DB-ResNet-18 alongside DB-ResNet-50, DETR’s reports
ResNet-101, and a smaller trunk is what bounds these models at test scale.
Methods
| Method | Summary |
|---|---|
ResNetVariant Resolve(BackboneType backbone, ResNetVariant paperDefault) |
The ResNet variant backbone names, or paperDefault. |