Skip to content

Ensemble model #21301

Answered by glenn-jocher
mw-boop asked this question in Q&A
Jul 7, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, you can create an ensemble model with YOLO11! Ultralytics provides an Ensemble class that allows combining multiple models. Here's how to use it with your 10 segmentation models:

from ultralytics.nn.tasks import Ensemble
from ultralytics import YOLO

# Load your 10 trained models
model_paths = ['model1.pt', 'model2.pt', 'model3.pt', ...]  # your 10 model paths
models = [YOLO(path) for path in model_paths]

# Create ensemble
ensemble = Ensemble()
for model in models:
    ensemble.append(model.model)

# Use the ensemble for inference
results = ensemble(image_tensor)

The ensemble concatenates predictions from all models and can provide better performance than individual models, especial…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@glenn-jocher
Comment options

Answer selected by mw-boop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested segment Instance Segmentation issues, PR's
3 participants