How to fix the error on INVALID_PARAMETER_VALUE when using mlflow for tracking a yolo model training?

Joey
New Contributor II

I'm new to databricks, and I'm trying to train yolo model and use mlflow to track the parameters and log the models. I keep getting this error related to the requirements.txt file path: INVALID_PARAMETER_VALUE: Invalid value '/Shared/YOLOv8/requirements.txt' for parameter: 'path'. Path must be relative.

I've tried to use the mlflow.log_artifact(requirements_path) with requirements_path being a relative path to the requirements.txt (/dbfs/FileStore/...), but it did not help. I'd appreciateany help to solve this problem. Thanks.