AttributeError: 'DetectionModel' object has no attribute 'yaml'
时间: 2023-10-23 22:10:13 浏览: 196
This error indicates that you are trying to access an attribute called `yaml` on an object of the `DetectionModel` class, but that attribute does not exist for that object.
There are a few possible reasons for this error:
1. You may have misspelled the attribute name. Double-check the spelling of the attribute you are trying to access.
2. The `yaml` attribute may not be defined for the `DetectionModel` class. Check the documentation for the `DetectionModel` class to see what attributes are available.
3. The `yaml` attribute may be defined for a subclass of `DetectionModel`, but not for the `DetectionModel` class itself. Make sure you are using the correct subclass of `DetectionModel`.
To fix this error, you will need to identify the correct attribute to use or modify your code to create or access the correct attribute.
阅读全文