Only folders generated when converting from udacity to voc
I'm trying to convert from udacity-autti and udacity-crowdai to voc, but only the raw folders are generated without any files inside. Converting from KITTI to voc works like a charm.
I am using this command in Anaconda:
(C:\ProgramData\Anaconda3) D:\data\KITTI_dataset\KITTI_2_VOC_converter_vod-converter-master\vod-converter-master>python vod_converter/main.py --from udacity-crowdai --from-path D:\data\CrowdAI_dataset\object-detection-crowdai\ --to voc --to-path D:\data\CrowdAI_voc\object-detection-crowdai\
Getting this output:
INFO:root:Namespace(filter_images_without_labels=False, from_key='udacity-crowdai', from_path='D:\data\CrowdAI_dataset\object-detection-crowdai\', select_only_known_labels=False, to_key='voc', to_path='D:\data\CrowdAI_voc\object-detection-crowdai\') Successfully converted from udacity-crowdai to voc.
This folder is generated: _D:\data\CrowdAI_voc\object-detection-crowdai\VOC2012_ with subfolders: Annotations ImageSets\Main JPEGImages
same for --from udacity-autti
Images and labels.csv are placed in D:\data\CrowdAI_dataset\object-detection-crowdai
what am I doing wrong or is there a problem with the scripts?
UPDATE: works if I change
f_name = image_path.split("/")[-1]
to
f_name = image_path.split("\\")[-1]
in lines 38 and 101 of udacity.py
I'm not a python pro, but maybe someone can cange the code so that it works for both ways of folder listing?
huh, I wonder if this is a platform specific character escaping issue, thanks for the heads up!
what OS are you running on?
Windows 7 with Anaconda for python. Converting from KITTI to VOC worked out of the box.