Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
limingcv
/
reward_controlnet
like
5
Diffusers
Safetensors
License:
mit
Model card
Files
Files and versions
xet
Community
Use this model
ae34a8d
reward_controlnet
/
utils.py
hysts
HF Staff
Add files
a660631
over 2 years ago
raw
Copy download link
history
blame
160 Bytes
import
random
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
,
1000000
)
return
seed