-
Notifications
You must be signed in to change notification settings - Fork 8k
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
How to impove small object detection #3198
Comments
I would recommend using the full size YOLOv3 architecture like in yolov3.cfg, or maybe even yolov3-spp.cfg as this has an even higher mAP. You should try the two following modifications as well as I have personally had a drastic improvement in performance by applying them to a network that attempts to find very small objects, typically in the same size-range as you.
As well as this
|
@ChungChinKei Hi,
Also you can try to use one of new models (without
But they are supported only by this repository. |
@AlexeyAB Thanks for the great work! |
You must use the latest versions of this repository: https://github.com/AlexeyAB/darknet
You must change the masks (or you must change only some anchors): https://github.com/AlexeyAB/darknet#how-to-improve-object-detection
|
@AlexeyAB |
@shadowmooon |
did Alexy suggesiton work for you? i am doing something similiar to you so it would help me if you have any further suggestions, |
@AlexeyAB Hi,
Thank you so much for sharing this project.
I am trying to detect some small defects on Metal surface.
Some information about dataset:
Only 1 class.
Grayscale images.
200 images for training(100 images of positive data and 100 negative).
50 images for validation(all positive).
Images resolution is 1600 x 1200.
objects size is about 30 x 30.(even smaller)
yolov3-tiny_3l.cfg with generated anchors.
Positive sample
Negative sample
Could you give me some advise to impove mAP?
Some details of cfg:
[net]
batch=64
subdivisions=32
width=1024
height=768
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1
exposure = 1.5
hue= 0
learning_rate=0.005
burn_in=1000
max_batches = 10000
policy=steps
steps=8000,9000
scales=.1,.1
[yolo]
mask = 6,7,8
anchors = 21, 19, 29, 19, 27, 23, 30, 29, 36, 24, 48, 27, 40, 35, 77, 22, 56, 42
classes=1
num=9
jitter=.3
ignore_thresh = .7
truth_thresh = 1
random=1
The text was updated successfully, but these errors were encountered: