MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / min_max

Method min_max

src/trainer.py:136–137  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

134 return crop_concat[:, :, :shape[2], :shape[3]]
135
136 def min_max(array):
137 return (array - array.min()) / (array.max() - array.min())
138 with torch.no_grad():
139 self.network.init_predictor.load_state_dict(torch.load(self.TEST_INITIAL_PREDICTOR_WEIGHT_PATH))
140 self.network.denoiser.load_state_dict(torch.load(self.TEST_DENOISER_WEIGHT_PATH))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected