umautobots / vod-converter

Convert between visual object detection datasets
MIT License
307 stars 93 forks source link

Only folders generated when converting from udacity to voc #18

Open MickaMickaMicka opened 6 years ago

MickaMickaMicka commented 6 years ago

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\CrowdAIvoc\object-detection-crowdai\VOC2012\ with subfolders: Annotations ImageSets\Main JPEGImages

same for --from udacity-autti

Images and labels.csv are placed in _D:\data\CrowdAIdataset\object-detection-crowdai

what am I doing wrong or is there a problem with the scripts?

MickaMickaMicka commented 6 years ago

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?

krosaen commented 6 years ago

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

what OS are you running on?

MickaMickaMicka commented 6 years ago

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