-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in issue #12457. #12459
Fix bug in issue #12457. #12459
Conversation
When run 'python.exe segment/predict.py --visualize' will throw AttributeError: 'tuple' object has no attribute 'shape'
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hello @tiancailin, thank you for submitting a YOLOv5 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- ✅ Verify your PR is up-to-date with
ultralytics/yolov5
master
branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by runninggit pull
andgit merge master
locally. - ✅ Verify all YOLOv5 Continuous Integration (CI) checks are passing.
- ✅ Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee
@tiancailin thanks for reporting this, we appreciate your help in making YOLOv5 more robust! This issue has been fixed in pull request #12459. Please update your local YOLOv5 repository with the latest changes, and 'python.exe segment/predict.py --visualize' should now work without throwing an |
@glenn-jocher Why are you linking to this same unmerged pull request in your comment? 😄 |
@tiancailin PR merged! Thank you for the fix :) |
* Fix bug in ultralytics#12457. When run 'python.exe segment/predict.py --visualize' will throw AttributeError: 'tuple' object has no attribute 'shape' * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
When run 'python.exe segment/predict.py --visualize' will throw AttributeError: 'tuple' object has no attribute 'shape'
🤖[deprecated] Generated by Copilot at 29a9571
Summary
🐛🔬🎨
Fixed feature visualization for segmentation tasks by excluding
Detect
andSegment
modules fromutils/plots.py
.Walkthrough
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Enhanced feature visualization in YOLOv5 to support segmentation tasks.
📊 Key Changes
🎯 Purpose & Impact