Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
hysts
/
ControlNet-v1-1
like
1k
Running
on
T4
App
Files
Files
Community
35
d5479f6
ControlNet-v1-1
/
utils.py
hysts
HF staff
Add files
a660631
over 1 year ago
raw
Copy download link
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