Generate-Image / utils.py
hysts's picture
hysts HF staff
Add files
a660631
raw
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