-
Notifications
You must be signed in to change notification settings - Fork 26
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
A little help for custom data training #1
Comments
Hi,just arrange ur dataset as VOC format. and put it at ./data/ ,and change the path in ./data/voc0712.py, I will update the train process in README |
Thank you for your help. I have rearranged the data as per VOC format, following the exact same folder hierarchy. I also made all the changes as per your guide. However, I am stuck again on another error now, I have tried to troubleshoot it before posting it here. Would appreciate if you have a look into it. Thanks again. PS: I have 13 classes in my boat classification dataset. 'vaporettoactv' is one of the class name, mentioned in the KeyError |
May there is an error in your voc0712.py while parsing your label "vaporettoactv". Please paste your |
This KeyError keeps on changing. However I am sharing the voc0712.py and another screenshot of the error. `"""VOC Dataset Classes VOC_CLASSES = (# always class 0 VOC_ROOT = osp.join('./', "data/VOCdevkit/") class VOCAnnotationTransform(object):
class VOCDetection(data.Dataset):
|
there might be some label error in your annotations, KeyError: 'patanella' means there is name:patanella in your xml files while your class name is Patanella, which is sensitive to captial letters, so you sure check your xml files and make sure all label is right . |
@midasklr @khalidw I was getting the same error. This is how I solved the KeyError: i.e. removing .lower() method fixed the keyError for me. BTW as suggested above I also cross-checked my annotations but could not find any error. So I think this might be a possible bug. |
Hello! Thank you for making your code public. I am trying to train a custom model for detection of boats. I have approx 3,867 images with VOC annotations (xml files). Can you guide me how I should arrange the data, as in what folder structure should I use?
The text was updated successfully, but these errors were encountered: