You can visualize all of your notations and images using the labelimg https://github.com/tzutalin/labelImg
To convert the xml (pascal/voc format) to txt (yolo format) you can use the labelimg program, then click on the “pascal/voc” and it will change to “yolo format”. Click in check image and save. The program will save in the yolo formatar the image that you are on.
For a automatized conversion, you can use this example as a template to write your own converter https://github.com/rafael-junio/mio-dataset-converter/blob/master/mio-dataset-converter.py
CLICK HERE to find out more related problems solutions.