Views
No views yet
1from huggingface_hub import hf_hub_download
2
3model = DinoV2ForSegmentation(num_classes=6)
4model.load_state_dict(
5 torch.load(
6 hf_hub_download(
7 repo_id="{model_repo}",
8 filename="{best_checkpoint}"
9 )
10 )
11)