Skip to content

Add merged detect.py with PR features - #12

Open
MathewTech254 wants to merge 1 commit into
AIMLCLUBOCT:mainfrom
MathewTech254:main
Open

MathewTech254 wants to merge 1 commit into
AIMLCLUBOCT:mainfrom
MathewTech254:main

Conversation

@MathewTech254

Copy link
Copy Markdown

Add merged detect.py with PR features" (by @MathewTech254)

@github-actions

Copy link
Copy Markdown

🎉 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 UmeshCode1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Successfully merging this pull request may close these issues.

2 participants