MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / load_weights

Function load_weights

loss/optimizer.py:101–107  ·  view source on GitHub ↗

Load weights from snapshot file

(net, optimizer, snapshot_file, restore_optimizer_bool=False)

Source from the content-addressed store, hash-verified

99
100
101def load_weights(net, optimizer, snapshot_file, restore_optimizer_bool=False):
102 """
103 Load weights from snapshot file
104 """
105 logx.msg("Loading weights from model {}".format(snapshot_file))
106 net, optimizer = restore_snapshot(net, optimizer, snapshot_file, restore_optimizer_bool)
107 return net, optimizer
108
109
110def restore_snapshot(net, optimizer, snapshot, restore_optimizer_bool):

Callers

nothing calls this directly

Calls 1

restore_snapshotFunction · 0.85

Tested by

no test coverage detected