OMG-InstantID / inference /models /yolov8 /yolov8_classification.py
Fucius's picture
Upload 422 files
2eafbc4 verified
raw
history blame
415 Bytes
from inference.core.models.classification_base import (
ClassificationBaseOnnxRoboflowInferenceModel,
)
class YOLOv8Classification(ClassificationBaseOnnxRoboflowInferenceModel):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.multiclass = self.environment.get("MULTICLASS", False)
@property
def weights_file(self) -> str:
return "weights.onnx"