Merge pull request #53 from HaylockGrant/main

Added tabs for txt2img-grids and img2img-grids
pull/3/head
不会画画的中医不是好程序员 2022-12-01 09:10:01 +08:00 committed by GitHub
commit eb7e0428e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ from pathlib import Path
from typing import List, Tuple
faverate_tab_name = "Favorites"
tabs_list = ["txt2img", "img2img", "Extras", faverate_tab_name, "Others"]
tabs_list = ["txt2img", "img2img", "txt2img-grids", "img2img-grids", "Extras", faverate_tab_name, "Others"] #txt2img-grids and img2img-grids added by HaylockGrant
num_of_imgs_per_page = 0
loads_files_num = 0
path_recorder_filename = os.path.join(scripts.basedir(), "path_recorder.txt")
@ -169,6 +169,10 @@ def create_tab(tabname):
dir_name = opts.outdir_txt2img_samples
elif tabname == "img2img":
dir_name = opts.outdir_img2img_samples
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
dir_name = opts.outdir_img2img_grids
elif tabname == "Extras":
dir_name = opts.outdir_extras_samples
elif tabname == faverate_tab_name: