feat: support weight upload for yolo26-sem semantic segmentation models#492
Merged
Conversation
Add TASK_SEM constant and wire it through the weight upload pipeline so yolo26-sem checkpoints (ultralytics SemanticSegmentationModel) are recognised, auto-suffixed, and validated against semantic-segmentation projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
probicheaux
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Prior behavior: The SDK had no awareness of semantic segmentation as a
distinct task.
TYPE_SEMANTIC_SEGMENTATIONprojects were explicitly skippedin upload validation, and
SemanticSegmentationModelcheckpoints (new inultralytics 8.4.55) were unrecognised.
New behavior: A new
TASK_SEM = "sem"constant is wired through theweight upload pipeline:
task_of_model_type("yolo26-sem")→TASK_SEM_detect_yolo_task()recognisesSemanticSegmentationModelcheckpointsvalidate_model_type_for_project()enforces that-semmodels matchsemantic-segmentation projects (and rejects mismatches in both directions)
"yolo26"with a semantic-seg checkpointauto-corrects to
"yolo26-sem"No changes needed to
supported_models, dependency checks, or artifactextraction —
"yolo26" in "yolo26-sem"passes all existing gates.Motivation: roboflow-train and roboflow-model-conversion already support
yolo26-sem; the SDK was the missing link for user-side weight upload.
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
Will the change affect Universe? If so was this change tested in universe?
n/a
Github Actions Required to Deploy
n/a — SDK package, no deployment needed.
Infrastructure impact
Docs