I'm doing the same thing for training yolov8n-cls for classifying my image but m getting the error mentioned below:
AttributeError: 'dict' object has no attribute 'Suffix'