detrium.nn.families.rtdetr_family
ModelFamilyAdapter for the RT-DETR / D-FINE / DEIM / RT-DETRv4 Apache-2.0 lineage.
class RTDETRFamilyAdapter(ModelFamilyAdapter)
Adapter unifying RT-DETRv2, D-FINE, DEIM, and RT-DETRv4 recipes.
matches(self, name_or_cfg: Union[str, Mapping[str, Any]]) -> bool
| 名称 | 类型 | 默认值 |
|---|
name_or_cfg | Union[str, Mapping[str, Any]] | — |
build_model_and_postprocessor(self, cfg: Any) -> Tuple[nn.Module, Optional[nn.Module]]
build_deploy_module(self, model: nn.Module, postprocessor: Optional[nn.Module]) -> nn.Module
| 名称 | 类型 | 默认值 |
|---|
model | nn.Module | — |
postprocessor | Optional[nn.Module] | — |
export_context(self) -> Iterator[None]