From 1ae7f8439465c4bbba9eb939cb138903373ee1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oph=C3=A9lie=20Le=20Mentec?= <17216799+ouphi@users.noreply.github.com> Date: Tue, 11 Jul 2023 22:31:37 +0200 Subject: [PATCH] Fix `MLFLOW_EXPERIMENT_NAME` env var (#3668) --- ultralytics/yolo/utils/callbacks/mlflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/yolo/utils/callbacks/mlflow.py b/ultralytics/yolo/utils/callbacks/mlflow.py index e61ca3d..6c4b798 100644 --- a/ultralytics/yolo/utils/callbacks/mlflow.py +++ b/ultralytics/yolo/utils/callbacks/mlflow.py @@ -26,7 +26,7 @@ def on_pretrain_routine_end(trainer): mlflow_location = os.environ['MLFLOW_TRACKING_URI'] # "http://192.168.xxx.xxx:5000" mlflow.set_tracking_uri(mlflow_location) - experiment_name = os.environ.get('MLFLOW_EXPERIMENT') or trainer.args.project or '/Shared/YOLOv8' + experiment_name = os.environ.get('MLFLOW_EXPERIMENT_NAME') or trainer.args.project or '/Shared/YOLOv8' run_name = os.environ.get('MLFLOW_RUN') or trainer.args.name experiment = mlflow.get_experiment_by_name(experiment_name) if experiment is None: