def _make_dinov3_detector(
*,
backbone_name: str,
pretrained: bool = True,
detector_weights: str | DetectionWeights,
backbone_weights: str | BackboneWeights,
check_hash: bool = False,
**kwargs,
):
detection_kwargs = dict(
with_box_refine=True,
two_stage=True,
mixed_selection=True,
look_forward_twice=True,
k_one2many=6,
lambda_one2many=1.0,
num_queries_one2one=1500,
num_queries_one2many=1500,
reparam=True,
position_embedding=PositionEncoding.SINE,
num_feature_levels=1,