Remove ip2p now that it's part of img2img

The ip2p directory and fields are redundant now, instruct-pix2pix extension with it's directory is now outdated as main repo support edit models and uses img2img
pull/13/head
TwoPerCent 2023-02-04 14:40:08 -05:00 committed by GitHub
parent 88bc2d17d9
commit fb2930ea09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -477,18 +477,11 @@ def create_tab(tabname):
path_recorder = {} path_recorder = {}
path_recorder_formatted = [] 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": if tabname == "txt2img":
dir_name = opts.outdir_txt2img_samples dir_name = opts.outdir_txt2img_samples
elif tabname == "img2img": elif tabname == "img2img":
dir_name = opts.outdir_img2img_samples 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 elif tabname == "txt2img-grids": #added by HaylockGrant to add a new tab for grid images
dir_name = opts.outdir_txt2img_grids dir_name = opts.outdir_txt2img_grids
elif tabname == "img2img-grids": #added by HaylockGrant to add a new tab for grid images elif tabname == "img2img-grids": #added by HaylockGrant to add a new tab for grid images