adorp's picture
Duplicate from hysts/ControlNet-v1-1
68916cf
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