I want to train my own dataset using retinanet. The Retinanet github page says that I need to convert my dataset's annotations to csv format. Retinanet csv format:
path/to/image.jpg,x1,y1,x2,y2,class_name
I've converted my own dataset's annotations into a python list. List example:
['/home/atakan/VOC2007/JPEGImages/bookstore_video0_1.jpg,1382,553,1420,602,Pedestrian',...]
Convert list to csv code :
with open('output.csv', 'w', newline='') as csvfile:
writer = csv.writer(csvfile,delimiter =' ',quotechar =',',quoting=csv.QUOTE_MINIMAL)
for i in liste:
writer.writerows([[i]])
But I can't get csv output in retinanet format. Where am I doing wrong?Thanks...