-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcfg320.lua
39 lines (38 loc) · 1.49 KB
/
cfg320.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
lapp = require 'pl.lapp'
-- network config
cfg = {
scale = 54,
nmap = 1, -- number of feature maps
msize = {10}, -- feature matp size
bpc = {6}, -- number of default boxes per cell
aratio = {1, '1', 2, 1/2, 3, 1/3}, -- aspect retio
variance = {0.2, 0.2, 0.2, 0.2, 0.2},
steps = {32},
imgshape = 320, -- input image size
classes = 2,
NegRatio = 3
}
opts = {}
-- parameters and others config
function opts.parse(arg)
opt = lapp [[
Command line options:
Training Related:
--lr (default 1e-3) learning rate
--momentum (default 0.9) momentum
--lrd (default 0.0002) learning rate decay
--wd (default 0.0005) weight decay
--snap (default 2000) snapshot
--iter (default 240000) iterations
--batchsize (default 16) mini-batch size
--test (default 10000) test span
--disp (default 59) display span
--output (default ./output/10x10x6_54/Resnet50_RGD_20x20x6_HV_b16_lrd2_OW_FF1) output directory
--root (default data) dataset root directory
--cache (default ./cache) cache file directory
--gpu (default 1) gpu id
--pretrain (default ./pretrain) pretrain model root directory
--seed (default 1)
]]
return opt
end