mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
parent
c5cbe8f87d
commit
8e81425e89
@ -1092,7 +1092,7 @@ def metadata_from_png(png_file_path) -> Args:
|
||||
returns a single Args object, not multiple.
|
||||
'''
|
||||
args_list = args_from_png(png_file_path)
|
||||
return args_list[0]
|
||||
return args_list[0] if len(args_list)>0 else Args() # empty args
|
||||
|
||||
def dream_cmd_from_png(png_file_path):
|
||||
opt = metadata_from_png(png_file_path)
|
||||
|
@ -28,7 +28,7 @@ class Outcrop(object):
|
||||
self.generate._set_sampler()
|
||||
|
||||
def wrapped_callback(img,seed,**kwargs):
|
||||
preferred_seed = orig_opt.seed if orig_opt.seed >= 0 else seed
|
||||
preferred_seed = orig_opt.seed if orig_opt.seed is not None and orig_opt.seed >= 0 else seed
|
||||
image_callback(img,preferred_seed,use_prefix=prefix,**kwargs)
|
||||
|
||||
result= self.generate.prompt2image(
|
||||
|
Loading…
Reference in New Issue
Block a user