Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
hysts/ControlNet-v1-1
YEsssssssssssir
/
AIgen
like
1
Sleeping
App
Files
Files
Community
b33837a
AIgen
/
utils.py
BINKSITUDE
Duplicate from hysts/ControlNet-v1-1
b33837a
12 months 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