Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
limingcv
/
ControlNet-Plus-Plus
like
78
Running
App
Files
Files
Community
3
21e6a9b
ControlNet-Plus-Plus
/
utils.py
hysts
HF staff
Add files
a660631
over 1 year ago
raw
Copy download link
history
blame
Safe
160 Bytes
import
random
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
,
1000000
)
return
seed