Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in YOLOv8Detector #25

Open
roykev opened this issue Feb 6, 2023 · 0 comments
Open

issue in YOLOv8Detector #25

roykev opened this issue Feb 6, 2023 · 0 comments

Comments

@roykev
Copy link

roykev commented Feb 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant