AssertionError occurs to file not found when executing train.py

795 Views Asked by At

I am trying to execute python train.py within Anaconda prompt but I am receiving numerous line text and an AssertionError: File not found: div2.yaml. As you can see my div2.yaml file is based on the coco128 thats linked to my datasets photos and validation.

python train.py --img 640 --batch 16 --epochs 3 --data div2.yaml --weights yolov5s.pt

I tried to Upload more screen prints to show the file directories, but it wont allow me. The div2.yaml file is located in C:\Users\Marti\Desktop\yolov5\Data. I have tried entering the full directory into the code but I have the same outcome. I am not sure what is wrong, if someone can help

Thanks

0

There are 0 best solutions below