* Refactor code for speed and clarity

* Update dataloaders.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher authored and GitHub committed 2024-07-01 00:17:24 +02:00
1 parent b9019671f4
commit 100a423b66
14 files changed
+30

No files matched your search

+1
View File
@@ -148,6 +148,7 @@ def run(
callbacks=Callbacks(),
compute_loss=None,
):
"""Evaluates model on a dataset and logs performance metrics, results are saved to specific directories."""
# Initialize/load model and set device
training = model is not None
if training: # called by train.py