Merge pull request #13 from Klace/patch-1

Remove ip2p now that it's part of img2img
pull/15/head
AlUlkesh 2023-02-04 20:45:48 +01:00 committed by GitHub
commit be513d619b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -476,19 +476,12 @@ def create_tab(tabname):
custom_dir = False
path_recorder = {}
path_recorder_formatted = []
try:
if opts.outdir_ip2p_samples:
ip2p_dirname = opts.outdir_ip2p_samples
except AttributeError:
ip2p_dirname = "outputs/ip2p-images"
if tabname == "txt2img":
dir_name = opts.outdir_txt2img_samples
elif tabname == "img2img":
dir_name = opts.outdir_img2img_samples
elif tabname == "instruct-pix2pix":
dir_name = ip2p_dirname
elif tabname == "txt2img-grids": #added by HaylockGrant to add a new tab for grid images
dir_name = opts.outdir_txt2img_grids
elif tabname == "img2img-grids": #added by HaylockGrant to add a new tab for grid images