Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
limingcv
/
reward_controlnet
like
4
Diffusers
Safetensors
License:
mit
Model card
Files
Files and versions
Community
Use this model
6df5354
reward_controlnet
/
utils.py
hysts
HF staff
Update
06d6d46
over 1 year ago
raw
Copy download link
history
blame
Safe
192 Bytes
import
random
from
settings
import
MAX_SEED
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
, MAX_SEED)
return
seed