File size: 415 Bytes
2eafbc4
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"