I want to train a custom model using Yolov8. I want to run the job on Azure Machine Learning Studio using Azure ML CLI v2.
Issue:
When I run on job on Azure ML, I get an error saying Permission Denied
Error Code: ScriptExecution.StreamAccess.Authentication
Native Error: error in streaming from input data sources
StreamError(PermissionDenied(Some(This request is not authorized to perform this operation using this permission.)))
=> permission denied when access stream. Reason: Some(This request is not authorized to perform this operation using this permission.)
PermissionDenied(Some(This request is not authorized to perform this operation using this permission.))
Error Message: Authentication failed when trying to access the stream. Make sure you have correct permissions set up. Ok(This request is not authorized to perform this operation using this permission.)| session_id=da7b713c-6cc8-4f6d-b24f-b54ab37e14ef
Yaml file:
- job.yaml:
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
experiment_name: yolov8-experiment
command: |
sed -i "s|path:.*$|path: ${{ inputs.training_data }}|" custom_dataset.yaml
# Train the model
yolo task=detect train data=custom_dataset.yaml model=${{ inputs.model_to_train }} epochs=10 project=yolov8-experiment name=experiment
inputs:
training_data:
type: uri_folder
mode: ro_mount
path: azure:data_asset:1
model_to_train:
type: custom_model
path: azureml:yolov8l:1
code: /training-code/
environment: azureml:yolov8-environment:1
compute: azureml:compute_cluster
- custom_dataset.yaml file:
path: ../dataset
train: /images/train/
test: /images/test/
val: /images/test/
nc=2
# class names
names:[class1, class2]
Below are the reference I used for the Training:
Medium-article-yolov8-training-azure-cli
Training Models on Azure ML with CLI v2 – Microsoft Training
I am currently facing issues determining the necessary permissions to proceed with my Azure setup. I have successfully signed in using ‘az login’ and have managed to create various components such as the environment, compute cluster, and data asset.
However, I am unsure about the specific permissions required to proceed further. Could someone please provide guidance on what permissions need to be granted for my setup to function properly? Any insights or recommendations would be greatly appreciated. Thank you!
aditijedhe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.