Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
xxx1/VQA_CAP_GPT
cooelf
/
Multimodal-CoT
like
5
Runtime error
App
Files
Files
Community
98fe1c9
Multimodal-CoT
/
timm
/
utils
/
random.py
cooelf
update
a6dac9a
over 1 year ago
raw
Copy download link
history
blame
Safe
178 Bytes
import
random
import
numpy
as
np
import
torch
def
random_seed
(
seed=
42
, rank=
0
):
torch.manual_seed(seed + rank)
np.random.seed(seed + rank)
random.seed(seed + rank)