MCPcopy
hub / github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB / load

Method load

vision/ssd/ssd.py:137–138  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

135 self.regression_headers.apply(_xavier_init_)
136
137 def load(self, model):
138 self.load_state_dict(torch.load(model, map_location=lambda storage, loc: storage))
139
140 def save(self, model_path):
141 torch.save(self.state_dict(), model_path)

Callers 14

train.pyFile · 0.45
detect_imgs.pyFile · 0.45
convert_to_onnx.pyFile · 0.45
getGraphFunction · 0.45
load_weightFunction · 0.45
load_checkpointFunction · 0.45
init_from_base_netMethod · 0.45
get_gt_boxes_from_txtFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected