infer_batch
Run inference over an image directory and persist the detections as a reusable manifest.
Inputs
checkpointinput_diroutput_dirimgsz,conf,device,batch_sizesave_annotatedexport_format—json,csv, oryolo_labels
Outputs
- number of processed images
- total detection count
- manifest path for the chosen export format
- optional annotated image directory
- a small preview list for Studio or CLI summaries
Examples
{"checkpoint":"yolov8n.pt","input_dir":"~/images"}
{"checkpoint":"run_demo","input_dir":"~/images","export_format":"csv","save_annotated":false}
Common Errors
- input directory missing
- no supported images found under the input directory
Related Tools
infer_image, benchmark_latency, model_profile