Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @glenn-jocher
Thanks for your input yesterday.
I have modified the PR as per your suggestion.
detect.py now creates separate txt files for each frame for videos, keeping image txt files the same.
For example:
video.mp4 containing 100 frames would now result in video_1.txt, video_2.txt, ..., video_100.txt
Also, I hope you don't mind, I changed the variable name from 'file' to 'f'. Using file as a variable name is not prohibited but since it is a builtin, it might cause issues later on.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Improved model attribute access and output file handling in YOLOv5 detection script.
📊 Key Changes
🎯 Purpose & Impact