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

Function seed_everything

inference_op.py:25–29  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

23import torch.nn.functional as F
24
25def seed_everything(seed):
26 torch.manual_seed(seed)
27 torch.cuda.manual_seed_all(seed)
28 np.random.seed(seed % (2**32))
29 random.seed(seed)
30
31
32def load_images_from_folder(folder, width, height):

Callers 1

inference_op.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected