AIgen / utils.py
BINKSITUDE's picture
Duplicate from hysts/ControlNet-v1-1
b33837a
raw
history blame contribute delete
160 Bytes
import random
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
if randomize_seed:
seed = random.randint(0, 1000000)
return seed