Views
No views yet
Experience the model in a clinical setting: Try the Live Demo here
AKIEC, BCC, BKL, DF, MEL (Melanoma), NV, VASC1from huggingface_hub import hf_hub_download
2import torch
3
4# 1. Download the weights
5weights_path = hf_hub_download(
6 repo_id="imtiazhumzah/DermAI-Clinical-Screen",
7 filename="best_melanoma_recall_model.pth"
8)
9
10# 2. Load onto your model (assuming 'model' is already initialized)
11state_dict = torch.load(weights_path, map_location='cpu')
12model.load_state_dict(state_dict)
13model.eval()
14
15print("DermAI weights loaded successfully!")