mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Increased allowed random seed range
This commit is contained in:
@@ -123,13 +123,8 @@ def worker():
|
||||
controlnet_cpds_path = None
|
||||
clip_vision_path, ip_negative_path, ip_adapter_path = None, None, None
|
||||
|
||||
seed = image_seed
|
||||
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
|
||||
seed = int(image_seed)
|
||||
print(f'[Parameters] Seed = {seed}')
|
||||
|
||||
if performance_selection == 'Speed':
|
||||
steps = 30
|
||||
|
||||
Reference in New Issue
Block a user