MCPcopy
hub / github.com/TencentARC/Pixal3D / state_dict

Method state_dict

pixal3d/utils/data_utils.py:145–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 return self.num_samples
144
145 def state_dict(self) -> dict[str, int]:
146 return {
147 'epoch': self.epoch,
148 'idx': self.idx,
149 }
150
151 def load_state_dict(self, state_dict):
152 self.epoch = state_dict['epoch']

Callers 5

saveMethod · 0.45
finetune_fromMethod · 0.45
loadMethod · 0.45
finetune_fromMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected