Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
hysts/ControlNet-v1-1
yonghenglh6
/
kiu5
like
0
Sleeping
App
Files
Files
Community
fad8b24
kiu5
/
utils.py
yonghenglh6
Duplicate from hysts/ControlNet-v1-1
fad8b24
about 1 year ago
raw
history
blame
No virus
160 Bytes
import
random
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
,
1000000
)
return
seed