MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / seed_everything

Function seed_everything

src/utils/util.py:16–24  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

14
15
16def seed_everything(seed):
17 import random
18
19 import numpy as np
20
21 torch.manual_seed(seed)
22 torch.cuda.manual_seed_all(seed)
23 np.random.seed(seed % (2**32))
24 random.seed(seed)
25
26
27def import_filename(filename):

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected