MCPcopy
hub / github.com/Duankaiwen/CenterNet / load_params

Method load_params

nnet/py_factory.py:127–132  ·  view source on GitHub ↗
(self, iteration)

Source from the content-addressed store, hash-verified

125 self.model.load_state_dict(params)
126
127 def load_params(self, iteration):
128 cache_file = system_configs.snapshot_file.format(iteration)
129 print("loading model from {}".format(cache_file))
130 with open(cache_file, "rb") as f:
131 params = torch.load(f)
132 self.model.load_state_dict(params)
133
134 def save_params(self, iteration):
135 cache_file = system_configs.snapshot_file.format(iteration)

Callers 2

trainFunction · 0.95
testFunction · 0.95

Calls

no outgoing calls

Tested by 1

testFunction · 0.76