MCPcopy Create free account
hub / github.com/deepbrainai-research/float / load_model

Method load_model

generate.py:92–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 self.data_processor = DataProcessor(opt)
91
92 def load_model(self) -> None:
93 self.G = FLOAT(self.opt)
94
95 def load_weight(self, checkpoint_path: str, rank: int) -> None:
96 state_dict = torch.load(checkpoint_path, map_location='cpu', weights_only=True)

Callers 1

__init__Method · 0.95

Calls 1

FLOATClass · 0.90

Tested by

no test coverage detected