Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only folders generated when converting from udacity to voc #18

Open
MickaMickaMicka opened this issue Jan 11, 2018 · 3 comments
Open

Only folders generated when converting from udacity to voc #18

MickaMickaMicka opened this issue Jan 11, 2018 · 3 comments

Comments

@MickaMickaMicka
Copy link

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
Copy link
Author

MickaMickaMicka commented Jan 11, 2018

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
Copy link
Contributor

krosaen commented Jan 12, 2018

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

what OS are you running on?

@MickaMickaMicka
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants