While training the network using the given command I am getting error in command prompt.
python train.py --img 640 --epochs 3 --data ..\datasets\dataset.yaml --weights yolov5s.pt
above is the command given
While training the network using the given command I am getting error in command prompt.
python train.py --img 640 --epochs 3 --data ..\datasets\dataset.yaml --weights yolov5s.pt
above is the command given
I think the error message indicates a syntax issue while parsing a YAML file. Specifically, it's complaining about a missing colon (": ") after a simple key. This suggests that a key-value pair is not formatted correctly.
Carefully check the line where the error is occurring. Look for missing colons or incorrect indentation. Mappings use a colon and space (“: ”) to mark each key/value pair. Don't forget the space.
I am using Win8.1 os where is the error.
snc or nc?
Try
# Parameters
nc: 3 # number of classes
If the problem is in "line 7, column 1" I think the issue is the hierarchy. Line 7 is where the nested elements (head, helmet, person) start.
Check that you are not using tabs to indent those attributes. As per YAMLs specifications:
"To maintain portability, tab characters must not be used in indentation, since different systems treat tabs differently"
'name:' had space after it for which it was not working
Thanks
Thanks
Thanks