ControlNet-v1-1 / utils.py
Amjadd's picture
Duplicate from gustOfWind/ControlNet-v1-1
d0f1bd0
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