Skip to main content
Question

trouble with deployment of custom YOLO ONNX model

  • November 13, 2025
  • 3 replies
  • 56 views

Forum|alt.badge.img

Hi,

I’m trying to deploy a custom YOLO ONNX model on the Metis compute board using the Voyager SDK.
The model fails during deployment because it expects (at least that’s what I understood^^) a fixed input shape of [8, 3, 128, 256], while the Voyager pipeline always provides a batch size of 1

Got: 1 Expected: 8

My question is simple:

👉 Is it possible to modify or extend the Voyager SDK (operators, pipeline, custom code, etc.) so that I can create a batch of 8 images before inference?
Or is Voyager strictly unable to handle ONNX models with a fixed batch > 1, meaning the model must be re-exported with batch=1 or dynamic batch?

Any guidance or examples would be appreciated.

Thanks!

3 replies

Forum|alt.badge.img
  • Author
  • Ensign
  • November 13, 2025

seems like it’s just a warning but I don’t know if this is the reason of my error


Spanner
Axelera Team
Forum|alt.badge.img+2
  • Axelera Team
  • November 13, 2025

HI ​@tchretien!

As you say, Voyager defaults to batch size 1 unless explicitly configured otherwise in the model YAML. So I don’t think your YOLO model with batch size 8 will work. But if you can re-export it with batch_size=1 you could be onto a winner.

There's no built-in pipeline functionality for batching multiple images before inference. If you need higher throughput, you can use the SDK's multi-core capabilities at the application level, but that's separate from model batch size.

For deploying your custom ONNX model, maybe check out:

Let me know how it goes!


To add to Spanner’s note: batch size is something set at compile time. We support batch sizes up to 4 since our Metis AIPU has four cores. Here’s an overview of how to configure this, look for the “Multi-core modes” section.

 

If your model input shape is size 1, then our SDK will create four instances of the model, one per core, and handle frame batching to each model.

 

Thanks,

David