MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / setup_seed

Function setup_seed

train.py:348–353  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

346 return psnr_test_iter
347
348def setup_seed(seed):
349 torch.manual_seed(seed)
350 torch.cuda.manual_seed_all(seed)
351 np.random.seed(seed)
352 random.seed(seed)
353 torch.backends.cudnn.deterministic = True
354
355if __name__ == "__main__":
356 # Set up command line argument parser

Callers 1

train.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected