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

Method apply_ckpt

sat/vae_modules/autoencoder.py:559–562  ·  view source on GitHub ↗
(self, ckpt: Union[None, str, dict])

Source from the content-addressed store, hash-verified

557 return batch[self.input_key]
558
559 def apply_ckpt(self, ckpt: Union[None, str, dict]):
560 if ckpt is None:
561 return
562 self.init_from_ckpt(ckpt)
563
564 def init_from_ckpt(self, path, ignore_keys=list()):
565 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