-
Notifications
You must be signed in to change notification settings - Fork 908
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
Training with one class #141
Comments
this problem has been raise before, this may have something to do with categorical_cross_entropy in the loss function. I can take a look when i get time, but right now there are two hacky solutions
Let me know if these works |
I have trained on wider_face (face detect only) dataset Training from random weights (which I try) |
Hi, I am also training with one class only, my image dataset is split 150/50.
However I also get relatively low confidence scores, never more than 0.5 and often nothing is detected. So I would just like double check are there still open issues specific to when one uses only one class ? |
Unfortunately, I also have been getting 0 detections on the val set. There are detections for the train set but none for the val set. Any Ideas what can be done. I even tried #70 |
I am also training with one class. I did not encounter any problem during the training but when I ran detect.py there is no detection for picture which I know it has more than one objects in it. Does anyone know what might be the solution for this? |
Hello,
First I want to thank you for this github and updating it, especially the recent tutorial on how to train.
After the latest update, I decided that I will use the model to train it for one class detection (person), but still using the VOC dataset.
Initially, I followed your tutorial on VOC dataset and managed to train it successfully (not really interested in numbers, accuracy - just that it seems to work) on Google Collab, my only issue being that when I tried to run the command of visualizing the dataset, I would receive module yolov3_tf2 not found (some python issue since in pycharm it was working), so I worked around it by moving visualize_dataset.py in the main folder.
After, I begin to prepare my new data records by modifying the voc script in order to eliminate all other annotations and adding my new custom.names containing only person class. I begin to train again for that only class with the loss decreasing kinda as before and I checked on few examples the detections after.
The model was trained to some degree correctly, making detections but the maximum confidence score was 0.5 no matter the example (even images from train dataset which should be closer to overfitting). I have gone through previous issues and found this one:
#70 (comment)
After modifying it and retraining again (even though that code doesn't actually affect the training part), the network managed to get confidence scores over 0.5 close to 1, so I assume this somehow apparently solved the issue.
However, I'm concerned if this really solves the issue or not... I am certainly not understanding the code that well to be able to decide that, so I am asking for some little explanation about that yolo_nms. If that modification is correct, it might be useful to have it in the official code since from what I've seen many people try to train the model only with one class and it is a recurring issue to some degree.
The text was updated successfully, but these errors were encountered: