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

question about the python tool #8

Open
zhji2822 opened this issue Dec 26, 2018 · 6 comments
Open

question about the python tool #8

zhji2822 opened this issue Dec 26, 2018 · 6 comments

Comments

@zhji2822
Copy link

zhji2822 commented Dec 26, 2018

I have some questions about how to use the python tool to get the dataset format that we can use. In the lisa.names file we find there were 5 labels that we need:speedLimit, warning, noTurn, stop, pedestrianCrossing, signalAhead. I assume we need to use the extractAnnotations.py to get those annotations for the training and here is what I did
`:~/Desktop/CUelectrical car/DATASET/tools$ python extractAnnotations.py -c [speedLimit, noTurn, stop, pedestrainCrossing, signalAhead]

usage: extractAnnotations.py [-h] [-f acceptedTag] [-c category] [-m 5]
{copy,mark,blackout,crop} filename.csv

extractAnnotations.py: error: argument mode: invalid choice: 'noTurn,' (choose from 'copy', 'mark', 'blackout', 'crop')
`
Can you help me to find the way that I can convert the dataset into the format that I need? thank you!!

@zhji2822
Copy link
Author

This is what I am using right now to run the "python tool" file how I just got the images but I didn't get the annotations that I want. Any help will be appreciated. thank you!!

python extractAnnotations.py -c warning copy allAnnotations.csv

@wyfsh
Copy link
Owner

wyfsh commented Dec 27, 2018

@zhji2822 I got your problem. The 6 labels (speedLimit, warning, noTurn, stop, pedestrianCrossing, signalAhead) are the superclasses of signs. They are defined in the LISA project papers. You can google their lab's papers.
Because of the limited computing power, we did this simplication to detect faster and more accurate. Of course, you can try to deal with the more general one.

@zhji2822
Copy link
Author

zhji2822 commented Dec 27, 2018 via email

@zhji2822
Copy link
Author

zhji2822 commented Dec 27, 2018 via email

@wyfsh
Copy link
Owner

wyfsh commented Dec 27, 2018

@zhji2822 You should carefully read the first 10 lines of evaluateDetections.py and filterAnnotationFile.py.
[-c category] -- category should be a txt file.

@zhji2822
Copy link
Author

zhji2822 commented Dec 27, 2018 via email

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