augmentedstartups / AS-One

Easy & Modular Computer Vision Detectors, Trackers & SAM - Run YOLOv9,v8,v7,v6,v5,R,X in under 10 lines of code.

Home Page:https://www.augmentedstartups.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue in YOLOv8Detector

roykev opened this issue · comments

commented

hi,
I'm running the detector on a custom model (i.e., i provide the the weights and classes)
got an error in line 107
warnings.warn(
f"class {_class} not found in model classes list.")

I can resolve it when I replace line 99
class_names = get_names()
with
class_names = list(self.model.names.values())

Am I right?
thanks