From fb2930ea098f73a5a01ce5c2b9d15db3b16d2a6a Mon Sep 17 00:00:00 2001 From: TwoPerCent Date: Sat, 4 Feb 2023 14:40:08 -0500 Subject: [PATCH] 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 --- scripts/images_history.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/images_history.py b/scripts/images_history.py index 615735a..3296688 100644 --- a/scripts/images_history.py +++ b/scripts/images_history.py @@ -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