Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
hysts/Shap-E
Illustre
/
Shap-E
like
0
Paused
App
Files
Files
Community
a839039
Shap-E
/
utils.py
Illustre
Duplicate from hysts/Shap-E
a38e93e
over 1 year ago
raw
Copy download link
history
blame
No virus
192 Bytes
import
random
from
settings
import
MAX_SEED
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
, MAX_SEED)
return
seed