Merge pull request #53 from HaylockGrant/main
Added tabs for txt2img-grids and img2img-gridspull/3/head
commit
eb7e0428e3
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue