Downloads · 30 days
0
Bkkpharma/ResNet34_finetuned_for_skin_diseases_by-abdlh
ResNet34_finetuned_for_skin_diseases_by-abdlh is a image classification model from Bkkpharma. Use it when you need a label for an image. The card lists the license as apache-2.0.
This repository hosts a machine learning model for skin disease classification, designed to predict skin conditions from input images. The model is trained on [dermnet] dataset and provides a simple yet effective way…
Downloads · 30 days
0
Access
Public
Updated May 12, 2026
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.pth85.3 MB · 100%
From the Hugging Face model README
This repository hosts a machine learning model for skin disease classification, designed to predict skin conditions from input images. The model is trained on [dermnet] dataset and provides a simple yet effective way to classify skin diseases.
You can load this model using the torch library in Python:
import torch
# Load the model
model_path = "path/to/skin_model2.pth"
model = torch.load(model_path, map_location=torch.device('cpu'))
model.eval()
# Example usage
from PIL import Image
from torchvision import transforms
# Preprocess input image
transform = transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
])
image = Image.open("example_input.jpg")
input_tensor = transform(image).unsqueeze(0)
# Make a prediction
with torch.no_grad():
prediction = model(input_tensor)
predicted_class = prediction.argmax(dim=1).item()
print(f"Predicted Class: {predicted_class}")
pip install huggingface_hub from huggingface_hub import hf_hub_download import torch
model_path = hf_hub_download(repo_id="<abdlh>/<ResNet34_finetuned_for_skin_diseases_by-abdlh>", filename="skin_model2.pth") model = torch.load(model_path, map_location=torch.device('cpu')) model.eval()
@misc{abdlh2024skindisease, title={Skin Disease Classification Model}, author={Muhammad Abdullah }, year={2024}, url={https://huggingface.co/<abdlh>/<ResNet34_finetuned_for_skin_diseases_by-abdlh>}, }