integrations/mlflow/ #13161
Replies: 4 comments 19 replies
-
how to set mlflow to true using CLI? |
Beta Was this translation helpful? Give feedback.
-
@pderrenger Ive set the tracking uri correctly to point to the sqlite database but the db itself created after the Yolo training run is empty and has experiments or run, this is automatically generated by Ultralytics right? so this is an issue on Ultralytics side? |
Beta Was this translation helpful? Give feedback.
-
Hey I'm facing a strange situation between yolov8 and mlflow. import pandas as pd
from ultralytics import YOLO, settings
import os
import json
import mlflow
settings.reset()
settings.update({
'mlflow': True,
'clearml': False,
'comet': False,
'dvc': False,
'hub': False,
'neptune': False,
'raytune': False,
'tensorboard': False,
'wandb': False
})
mlflow.set_experiment("Teste 01")
mlflow.set_tracking_uri("postgresql://user:senha@localhost:5432/postgres")
model_name = "yolov8n-cls.pt"
model = YOLO(model_name)
epochs = 3
image_size = 128
with mlflow.start_run(run_name=f'{model_name}-{epochs}-{image_size}'):
model.train(name=f'{model_name}-{epochs}-{image_size}', data='dataset', epochs=epochs, imgsz=image_size, hsv_h=1, hsv_s=1, hsv_v=1) The reason I maintained some mlflow configs out of with statement is because I would like to preserve all parameters, metrics and artifacts generated automatically by yolo-mlflow settings. And the error I found was during the db creation: the experiment_id generated by yolo is bigger than serial4 type, which is the type used as postgres-mlflow default (a bigint type would solve I suppose). So, due to that, I'm facing the following error:
I was wondering if I could just define the experiment_id as a serial4, maintaining it in MLFlow patterns (numerical order e.g 1, 2, 3, 4...). I thought about fix it manually by changing the type directly on my database, but I believe that there's a smarter way to fix it. Does anyone know how to solve it? |
Beta Was this translation helpful? Give feedback.
-
For multiple GPU training a YOLO model, with autolog enabled and also I manually logged a few items by using mlflow.log_xxx() and I also logged the customized PyFunc model, it turns out to be multiple runs are generated per training. I want to only have 1 run and it better have all the logged artifacts.
Thanks |
Beta Was this translation helpful? Give feedback.
-
integrations/mlflow/
Uncover the utility of MLflow for effective experiment logging in your Ultralytics YOLO projects.
https://docs.ultralytics.com/integrations/mlflow/
Beta Was this translation helpful? Give feedback.
All reactions