-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update outputs #239
Update outputs #239
Conversation
CLA Assistant Lite bot All Contributors have signed the CLA. ✅ |
for more information, see https://pre-commit.ci
@Laughing-q okay perfect! let's discuss this later today. I'll add some docs so we have them at the same time as release |
for more information, see https://pre-commit.ci
recheck |
@Laughing-q do we have a function in place to convert segment coordinates to masks? |
@AyushExel here, but it serves dataset. never tested independently. ultralytics/ultralytics/yolo/data/utils.py Lines 133 to 151 in 55b313b
|
okay got it. We can make something similar later |
@Laughing-q good to merge? |
@glenn-jocher yes..But we need to update docs before putting out stable release.. You can merge this.. I'll start another PR for docs |
Merged into 8.0.3 fixes |
@AyushExel @glenn-jocher
python interface usage:
segmentation:
detection:
cls:
set a arg
return_outputs
to control whether to return outputs.return_outputs=True
by default in python interface.return_outputs=False
by default in cli mode.If don't want the outputs in python interface, just set it to
False
.🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Refactoring prediction functionality to support iterative result generation and optional result return in Ultralytics YOLO models.
📊 Key Changes
return_outputs
flag to thepredict()
method to control the output behavior.return_outputs
is set toTrue
.all_outputs
in favor of yielding or returning individual predictions.🎯 Purpose & Impact