RationAI/PanNuke
Viewer • Updated • 7.9k • 960 • 16
Configuration Parsing Warning:Invalid JSON for config file config.json
from huggingface_hub import hf_hub_download
model = DinoV2ForSegmentation(num_classes=6)
model.load_state_dict(
torch.load(
hf_hub_download(
repo_id="{model_repo}",
filename="{best_checkpoint}"
)
)
)