def METHOD_NAME(yaml_file, yaml_ckpt):
    cfg.merge_from_file(yaml_file)
    cfg.freeze()
    model = build_detection_model(cfg)
    checkpoint = torch.load(yaml_ckpt, map_location=torch.device("cpu"))
    load_state_dict(model, checkpoint.pop("model"))
    model.to("cuda")
    model.eval()
    return model