YOLOv7 Test Kesim Model
This repository contains a YOLOv7 model trained for object detection tasks.
Model Details
- Model File:
best278.pt - Framework: PyTorch
- Architecture: YOLOv7
💡 Çalıştırmadan Önce (Torch Uyumluluk Notu)
ABİ ÇALIŞTIRABİLMEK İÇİN TORCH'U 2.1'E DÜŞÜRMEK GEREK. PyTorch 2.6 ve sonrası
weights_only=Truehatası veriyor, bu yüzden CPU versiyonu 2.1 kurulmalı.
🔧 Gerekli Kurulum Adımları
# 1. Önce tüm bağımlılıkları yükle
pip install -r requirements.txt
# 2. Torch ve torchvision'u CPU uyumlu sürüme düşür
pip uninstall -y torch torchvision torchaudio
pip install torch==2.1.0+cpu torchvision==0.16.0+cpu --index-url https://download.pytorch.org/whl/cpu
# 3. NumPy 2.x hata veriyorsa eski sürüme geç
pip install numpy==1.26.4
🧠 Not:
NumPy 2.0 ve üstü sürümler Torch 2.1 ile uyumlu değil. Bu adımlar tamamlandıktan sonra model sorunsuz çalışır.
Usage
import yolov7
# Load the model using yolov7 library
model = yolov7.load('best278.pt')
# Configure model parameters
model.conf = 0.5 # confidence threshold
model.iou = 0.45 # IoU threshold
model.classes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
# Use for inference
results = model('path/to/image.jpg')
Repository Information
- Organization: ImparkTeam
- Model Type: YOLOv7 Object Detection
- Private Repository: Yes