yolo_results() loads, inspects, and plots diagnostics, training metrics, loss curves,
confusion matrices, and precision-recall graphs for a trained YOLO model.
It supports models trained locally with yolo_train() or yolo_train_workflow(), as well
as training runs downloaded from Google Colab, cloud VMs, or external directories.
You can pass:
A model name (e.g.
"capsulas_det","model_capsulas").A direct path to an external results folder (e.g.
"runs/detect/train","capsulas_small_results", or downloaded from Colab).A direct path to a
.ziparchive containing the downloaded training results (automatically extracted).
Arguments
- model
A model name, a direct path to a results directory, or path to a results
.ziparchive. Can be omitted ifresults_diris explicitly supplied.- results_dir
Optional direct path to the training results folder. If
modelis already a directory or.zippath, this is inferred automatically.- output_dir
Base directory to search for trained models. Defaults to
pliman_model_dir().
Examples
if (FALSE) { # interactive()
library(pliman)
# 1. Inspect a model by name
res <- yolo_results("capsulas_det")
# 2. Inspect a folder downloaded from Google Colab
res_colab <- yolo_results("capsulas_small_results")
# 3. Inspect a .zip archive directly
res_zip <- yolo_results("capsulas_small_results.zip")
# Plot diagnostic dashboard
plot(res)
plot(res, which = "confusion_matrix")
plot(res, which = "pr_curve")
}
