Instructions to use SERHANI/skin_disease with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use SERHANI/skin_disease with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("SERHANI/skin_disease", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download handler.py from SERHANI/skin_disease: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/SERHANI/skin_disease/resolve/main/handler.py
- Command line
-
hf download hf://SERHANI/skin_disease/handler.py
-
curl -L -o handler.py https://huggingface.co/SERHANI/skin_disease/resolve/main/handler.py
155 Bytes
| from ultralytics import YOLO | |
| import torch | |
| def run_inference(image_path): | |
| model = YOLO('model.pt') | |
| results = model(image_path) | |
| return results | |