Views
No views yet
insan sınıfını tespit eder.ultralytics
1# Gerekli kütüphaneleri yükleyin:
2# pip install ultralytics huggingface_hub
3
4from huggingface_hub import hf_hub_download
5from ultralytics import YOLO
6
7# 1. Modeli Hugging Face üzerinden indir
8model_path = hf_hub_download(repo_id="Mahmut26662/yolov8-forest-human-detection", filename="best.pt")
9
10# 2. Modeli yükle
11model = YOLO(model_path)
12
13# 3. Test resmini ver ve tahminleme yap
14results = model("test_resminizin_yolu.jpg")
15
16# 4. Sonucu ekranda göster
17results[0].show()