Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
hysts
/
Shap-E
like
491
Running
on
Zero
App
Files
Files
Community
27
7f04803
Shap-E
/
utils.py
hysts
HF staff
Add files
feb3220
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