mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
random seed restoring
This commit is contained in:
@@ -54,8 +54,13 @@ def worker():
|
||||
|
||||
results = []
|
||||
seed = image_seed
|
||||
if not isinstance(seed, int) or seed < 0 or seed > 1024*1024*1024:
|
||||
seed = random.randint(1, 1024*1024*1024)
|
||||
max_seed = int(1024*1024*1024)
|
||||
|
||||
if not isinstance(seed, int):
|
||||
seed = random.randint(1, max_seed)
|
||||
if seed < 0:
|
||||
seed = - seed
|
||||
seed = seed % max_seed
|
||||
|
||||
all_steps = steps * image_number
|
||||
|
||||
|
||||
Reference in New Issue
Block a user