parse_generation_parameters with no skip_fields
This commit is contained in:
parent
d224fed0ce
commit
45a51c07e2
|
@ -88,7 +88,7 @@ def connect_reuse_seed(seed: gr.Number, reuse_seed: gr.Button, generation_info:
|
||||||
try:
|
try:
|
||||||
gen_info = json.loads(gen_info_string)
|
gen_info = json.loads(gen_info_string)
|
||||||
infotext = gen_info.get('infotexts')[index]
|
infotext = gen_info.get('infotexts')[index]
|
||||||
gen_parameters = infotext_utils.parse_generation_parameters(infotext)
|
gen_parameters = infotext_utils.parse_generation_parameters(infotext, [])
|
||||||
res = int(gen_parameters.get('Variation seed' if is_subseed else 'Seed', -1))
|
res = int(gen_parameters.get('Variation seed' if is_subseed else 'Seed', -1))
|
||||||
except Exception:
|
except Exception:
|
||||||
if gen_info_string:
|
if gen_info_string:
|
||||||
|
|
|
@ -76,7 +76,7 @@ def save_files(js_data, images, do_make_zip, index):
|
||||||
|
|
||||||
p.batch_index = image_index-1
|
p.batch_index = image_index-1
|
||||||
|
|
||||||
parameters = parameters_copypaste.parse_generation_parameters(data["infotexts"][image_index])
|
parameters = parameters_copypaste.parse_generation_parameters(data["infotexts"][image_index], [])
|
||||||
parsed_infotexts.append(parameters)
|
parsed_infotexts.append(parameters)
|
||||||
fullfn, txt_fullfn = modules.images.save_image(image, path, "", seed=parameters['Seed'], prompt=parameters['Prompt'], extension=extension, info=p.infotexts[image_index], grid=is_grid, p=p, save_to_dirs=save_to_dirs)
|
fullfn, txt_fullfn = modules.images.save_image(image, path, "", seed=parameters['Seed'], prompt=parameters['Prompt'], extension=extension, info=p.infotexts[image_index], grid=is_grid, p=p, save_to_dirs=save_to_dirs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue