vod-converter icon indicating copy to clipboard operation
vod-converter copied to clipboard

Only folders generated when converting from udacity to voc

Open MickaMickaMicka opened this issue 8 years ago • 3 comments

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?

MickaMickaMicka avatar Jan 11 '18 14:01 MickaMickaMicka

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?

MickaMickaMicka avatar Jan 11 '18 14:01 MickaMickaMicka

huh, I wonder if this is a platform specific character escaping issue, thanks for the heads up!

what OS are you running on?

krosaen avatar Jan 12 '18 18:01 krosaen

Windows 7 with Anaconda for python. Converting from KITTI to VOC worked out of the box.

MickaMickaMicka avatar Jan 12 '18 19:01 MickaMickaMicka