mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
remove double basicr requirement
add seed change for anon
This commit is contained in:
@@ -50,7 +50,7 @@ class Script(scripts.Script):
|
||||
return [put_at_start]
|
||||
|
||||
def run(self, p, put_at_start):
|
||||
seed = int(random.randrange(4294967294) if p.seed == -1 else p.seed)
|
||||
seed = modules.processing.set_seed(p.seed)
|
||||
|
||||
original_prompt = p.prompt[0] if type(p.prompt) == list else p.prompt
|
||||
|
||||
|
@@ -108,7 +108,7 @@ class Script(scripts.Script):
|
||||
return [x_type, x_values, y_type, y_values]
|
||||
|
||||
def run(self, p, x_type, x_values, y_type, y_values):
|
||||
p.seed = int(random.randrange(4294967294) if p.seed == -1 else p.seed)
|
||||
p.seed = modules.processing.set_seed(p.seed)
|
||||
p.batch_size = 1
|
||||
p.batch_count = 1
|
||||
|
||||
|
Reference in New Issue
Block a user