diff --git a/README.md b/README.md index fe2b860..7872ace 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # stable-diffusion-webui-images_browse -an images browse for stable-diffusion-webui +This an extension for [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) + +This an images browser for browsing past generated pictures, view their generated infomations,send the prompt to txt2img or img2img, collect images to your "faveries" fold, delete the images you no longer need, and you can also browse images in any folds in your computer +![image](https://s6.jpg.cm/2022/10/24/PJjuZt.png) + +go to the directory \/extensions and run command to install: + +`git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser ` + +and restart your stable-diffusion-webui, then you can see the new tab "Images Browser" + + [See here for more install details]( https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Extensions) + + diff --git a/scripts/images_history.py b/scripts/images_history.py index 63073b4..77b0faf 100644 --- a/scripts/images_history.py +++ b/scripts/images_history.py @@ -184,7 +184,7 @@ def create_tab(tabname): if not custom_dir: d = dir_name.split("/") - dir_name = d[0] + dir_name = "/" if dir_name.startswith("/") else d[0] for p in d[1:]: dir_name = os.path.join(dir_name, p) if not os.path.exists(dir_name):