mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Test for the presence of the specified img2img
This commit is contained in:
parent
0cdf5e61b0
commit
1df1e5c38b
@ -161,7 +161,12 @@ def main_loop(t2i,parser,log,infile):
|
|||||||
if opt.init_img is None:
|
if opt.init_img is None:
|
||||||
results = t2i.txt2img(**vars(opt))
|
results = t2i.txt2img(**vars(opt))
|
||||||
else:
|
else:
|
||||||
results = t2i.img2img(**vars(opt))
|
if os.path.exists(opt.init_img):
|
||||||
|
results = t2i.img2img(**vars(opt))
|
||||||
|
else:
|
||||||
|
print(f"An image was not present at {opt.init_img}. Try again with a valid image path!")
|
||||||
|
continue
|
||||||
|
|
||||||
print("Outputs:")
|
print("Outputs:")
|
||||||
write_log_message(t2i,opt,results,log)
|
write_log_message(t2i,opt,results,log)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user