Repository navigation
Add merged detect.py with PR features - #12
MathewTech254 wants to merge 1 commit into
Conversation
🎉 Thank you for your Pull Request, @MathewTech254!Welcome to AIML Club OCT! 🚀 A maintainer will review your code shortly. In the meantime:
Happy coding! 💻✨ |
UmeshCode1
left a comment
There was a problem hiding this comment.
This PR should not be merged in its current form. The new root-level detect.py appears to duplicate the existing intermediate/safety-helmet-detector/detect.py project implementation and overlaps the purpose of PR #6. Please consolidate the work into the existing project directory and coordinate with PR #6 rather than introducing a second detector entry point.
There are also clear runtime defects in the patch: np.array(...) is used but NumPy is never imported as np; im0, p, s, and save_path are referenced without being defined in the shown loop; and the code depends on YOLOv7-era internal modules (models.experimental, utils.datasets, etc.) that are not established as part of this repository's dependencies or project structure. The parser defaults to yolov7.pt while the surrounding project and competing PR describe an Ultralytics YOLOv8 workflow.
Please either close this duplicate in favour of a single consolidated PR or rework it as a focused contribution to the existing detector, with pinned/documented dependencies, working end-to-end execution, and tests. Also clarify the intended model architecture and required custom helmet-class weights.
Add merged detect.py with PR features" (by @MathewTech254)