MCPcopy Create free account
hub / github.com/VisionLearningGroup/OVANet / load_model

Function load_model

utils/utils.py:60–64  ·  view source on GitHub ↗
(model_g, model_c, load_path)

Source from the content-addressed store, hash-verified

58 torch.save(save_dic, save_path)
59
60def load_model(model_g, model_c, load_path):
61 checkpoint = torch.load(load_path)
62 model_g.load_state_dict(checkpoint['g_state_dict'])
63 model_c.load_state_dict(checkpoint['c_state_dict'])
64 return model_g, model_c

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected