MCPcopy
hub / github.com/amdegroot/ssd.pytorch / build_ssd

Function build_ssd

ssd.py:198–209  ·  view source on GitHub ↗
(phase, size=300, num_classes=21)

Source from the content-addressed store, hash-verified

196
197
198def build_ssd(phase, size=300, num_classes=21):
199 if phase != "test" and phase != "train":
200 print("ERROR: Phase: " + phase + " not recognized")
201 return
202 if size != 300:
203 print("ERROR: You specified size " + repr(size) + ". However, " +
204 "currently only SSD300 (size=300) is supported!")
205 return
206 base_, extras_, head_ = multibox(vgg(base[str(size)], 3),
207 add_extras(extras[str(size)], 1024),
208 mbox[str(size)], num_classes)
209 return SSD(phase, size, base_, extras_, head_, num_classes)

Callers 4

eval.pyFile · 0.90
trainFunction · 0.90
test_vocFunction · 0.90
live.pyFile · 0.90

Calls 4

multiboxFunction · 0.85
vggFunction · 0.85
add_extrasFunction · 0.85
SSDClass · 0.85

Tested by 1

test_vocFunction · 0.72