MCPcopy Index your code
hub / github.com/hzwer/ECCV2022-RIFE / save_model

Method save_model

model/RIFE.py:52–54  ·  view source on GitHub ↗
(self, path, rank=0)

Source from the content-addressed store, hash-verified

50 self.flownet.load_state_dict(convert(torch.load('{}/flownet.pkl'.format(path))))
51
52 def save_model(self, path, rank=0):
53 if rank == 0:
54 torch.save(self.flownet.state_dict(),'{}/flownet.pkl'.format(path))
55
56 def inference(self, img0, img1, scale=1, scale_list=None, TTA=False, timestep=0.5):
57 if scale_list is None:

Callers 1

trainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected