def METHOD_NAME(args):
    position_embedding = PositionEmbeddingSine(
        args.encoder_hidden_dim // 2, normalize=True
    )
    train_backbone = args.lr_backbone > 0
    return_interm_layers = False
    backbone = Backbone(
        args.backbone, train_backbone, return_interm_layers, args.dilation
    )
    model = Joiner(backbone, position_embedding)
    model.num_channels = backbone.num_channels
    return model