Conversation
|
All the tests failing 😆 I know this will go no where without being able to pass the CI tests, but like I mentioned, it's more of a conceptual starting point. Going to add some tasks to the original PR comment that pertain to some of the CI test failures. |
|
@Burhan-Q would it be possible to just expand the arguments in model and read the defaults directly from the YAML, i.e. something like: args = read from default.yaml here
def train(imgsz: int = args["imgsz"],
...EDIT: No I guess not:
|
|
@glenn-jocher as far as I'm aware, the type hinting is all done statically, so we can't use the YAML values. This was something I thought about and tried, but wasn't able to and couldn't find a way make work. From what I understand from reading/research on this topic, is that in an ideal world, the code would be sufficient to be "self-documenting." That would mean that artifacts (like the If we use something like this concept, the My thinking is that (for this implementation at least), we could generate the new |
|
Hi @Burhan-Q ! |
|
👋 Hello there! We wanted to let you know that we've decided to close this pull request due to inactivity. We appreciate the effort you put into contributing to our project, but unfortunately, not all contributions are suitable or aligned with our product roadmap. We hope you understand our decision, and please don't let it discourage you from contributing to open source projects in the future. We value all of our community members and their contributions, and we encourage you to keep exploring new projects and ways to get involved. For additional resources and information, please see the links below:
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |


Concept New
ModelMetaclassI understand this is a big add, but this was something I know we've discussed and I had a moment of inspiration and ran with it. I don't think it's perfect, but I think it can serve as a starting point or perhaps inspiration.
YOLOmodels.utils/doc_methods.pyfor convertingMetaModelmethod arguments into a similar format ascfg/default.yaml(not exactly the same)Could close #8155
Open Tasks
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
This PR introduces the new
ModelMetaclass to the YOLO codebase, enhancing model functionalities such as export, predict, train, and track.📊 Key Changes
ModelMetaClass: Introduced to encapsulate meta-information and functionalities for YOLO models.benchmark: Assesses model performance across various export formats.export: Exports models to different formats.predict: Performs predictions on various image sources.train: Provides an extensive training pipeline.track: Adds object tracking capabilities.val: Validates model performance.YOLOClass: Now inherits fromModelMetainstead ofModel.🎯 Purpose & Impact
ModelMetaclass allows more modular and reusable code.These changes aim to make the YOLO model more versatile and user-friendly, benefiting both developers and end-users in deploying and experimenting with object detection tasks.
🔧✨