Hi,
Based on the information you provided, the error is occurring due to the input data being passed to the function as a “table” instead of a “datastore”. This is causing an issue in the “copy” function.
To resolve the issue, you will need to convert your tabular data into a “datastore” before passing it to the training function. You can find an example on how to create “datastores” for your data at the following link: https://www.mathworks.com/help/vision/ref/trainyolov2objectdetector.html#mw_4a2cc890-6a93-4e86-a441-e49d8ea58663
Hope this helps!