-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
After single-class training, nothing can be detected. #126
Comments
@MarkDana try this tutorial. The https://github.com/ultralytics/yolov3 repository also includes a YOLOv3 realtime iPhone app: |
Thks and I've tried this tutorial. Training now, waiting to see the result. |
I had same questiones with me before. in detect.py, replace |
Use transfer learning as mentioned by @gfjiangly it wont show results otherwise |
Both @gfjiangly and @fourth-archive 's method work well. I'll close this issue, thx. |
I've used this model to train for a single-class dataset, which contains 300 images. After 500 epochs of training, total loss has been reduced to a fairly low level (min=0.011), with precision up to 0.887.
However when I use the generated weights to detect images in the train-val set, nothing can be detected for each image. When running
detect.py
,All images show
[None]
.Below is some changes I made to the original project:
yolov3.cfg
,detect.py
, to test the probability, I editednon_max_suppression(detections, num_classes=1, opt.conf_thres=0, opt.nms_thres=0)
, but nothing detected, still.One of the reason may be that, the weights were initialized from yolov9.weights, and that may be different in network structure I edited in
yolov3.cfg
.What's more, exploding gradient problem happened 3 times in the 500 epochs.
Anyone in same situation or can help me? thks.
The text was updated successfully, but these errors were encountered: