MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / apply_ckpt

Method apply_ckpt

sat/sgm/models/autoencoder.py:534–537  ·  view source on GitHub ↗
(self, ckpt: Union[None, str, dict])

Source from the content-addressed store, hash-verified

532 return batch[self.input_key]
533
534 def apply_ckpt(self, ckpt: Union[None, str, dict]):
535 if ckpt is None:
536 return
537 self.init_from_ckpt(ckpt)
538
539 def init_from_ckpt(self, path, ignore_keys=list()):
540 sd = torch.load(path, map_location="cpu")["state_dict"]

Callers

nothing calls this directly

Calls 1

init_from_ckptMethod · 0.95

Tested by

no test coverage detected