Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Walter0807/MotionBERT
/ set_random_seed
Function
set_random_seed
train.py:41–44 ·
view source on GitHub ↗
(seed)
Source
from the content-addressed store, hash-verified
39
return
opts
40
41
def
set_random_seed(seed):
42
random.seed(seed)
43
np.random.seed(seed)
44
torch.manual_seed(seed)
45
46
def
save_checkpoint(chk_path, epoch, lr, optimizer, model_pos, min_loss):
47
print(
'Saving checkpoint to'
, chk_path)
Callers
1
train.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected