YOLO_V3_Ad_Training - 8BitsCoding/RobotMentor GitHub Wiki
์ฐธ๊ณ ์ฌ์ดํธ์ How to improve object detection๋ฅผ ์ฐธ์กฐํ์.
.cfg์ ๋ง์ง๋ง์ค์ [yolo]์ random=1๋ก ์ค์
[yolo]
mask = 0,1,2
anchors = 10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326
classes=80
num=9
jitter=.3
ignore_thresh = .5
truth_thresh = 1
random=1 # ์ฌ๊ธฐ
.cfg์ height, width๋ฅผ 32์ ๋ฐฐ์๋ก ๋ณ๊ฒฝ(๊ธฐ๋ณธ์ 416์ผ ๊ฒ)
[net]
# Testing
# batch=1
# subdivisions=1
# Training
batch=64
subdivisions=8
width=416 # ์ฌ๊ธฐ
height=416 # ์ฌ๊ธฐ
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1
๋ฐ์ดํฐ ์ ์ ๋ผ๋ฒจ์ด ์๋์ง ๋ค์ ํ์ธํ๋ค.
ํ์ต ๋ฐ์ดํฐ ์ค ์ต์ํ ํ๋๋ผ๋ ๋น์ทํ ์ด๋ฏธ์ง๋ฅผ ๋ฃ๋๋ค.
ํ์ต์ ํ์๋ฅผ classes * 2000 ์ด์์ผ๋ก ํ๋ค.
๋ง์ฝ ์ธ์ํ์ง ์๊ธฐ๋ฅผ ์ํ๋ ๋ฐ์ดํฐ๊ฐ ์๋๊ฒฝ์ฐ ๋ผ๋ฒจ์ ๋ถ์ด์ง ์๊ณ ๋ฃ๋๋ค.
ํด์๋๋ฅผ 416x416์ผ๋ก ๋ณ๊ฒฝํด๋ ์ธ์์ ์ํ๋ ์ค๋ธ์ ํธ์ ํฌ๊ธฐ๊ฐ 16x16๋ฏธ๋ง์ด๋ผ๋ฉด,layers = -1, 11์ผ๋ก stride=4์ผ๋ก ์ค์ ํ๋ค.
[upsample]
stride=2 # ์ฌ๊ธฐ
[route]
layers = -1, 36 # ์ฌ๊ธฐ
์๋์ .cfg ํ์ผ์ ์ฐ๋ ๊ฒ๋ ๋์์ ํ์ ์๋๋ค.
์ธ์์ ์ํ๋ ์ค๋ธ์ ํธ์ ์ข/์ฐ ๋ฑ์ ๊ตฌ๋ถํ๊ธธ ์ํ๋ค๋ฉด flip=0์ ์ถ๊ฐํ์
[net]
# Testing
batch=1
subdivisions=1
# Training
# batch=64
# subdivisions=16
width=416
height=416
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1
flip=0 # ์ฌ๊ธฐ