MCPcopy Create free account
hub / github.com/ZhengPeng7/BiRefNet / save_checkpoint

Function save_checkpoint

utils.py:80–81  ·  view source on GitHub ↗
(state, path, filename="latest.pth")

Source from the content-addressed store, hash-verified

78
79
80def save_checkpoint(state, path, filename="latest.pth"):
81 torch.save(state, os.path.join(path, filename))
82
83
84def save_tensor_img(tenor_im, path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected