yfszzx / stable-diffusion-webui-images-browser

an images browse for stable-diffusion-webui
489 stars 235 forks source link

Nothing working except favorites folder #78

Open IanD-FM opened 1 year ago

IanD-FM commented 1 year ago

Clicking any tab other than favorites folder is giving me a javascript error in browser:

Uncaught (in promise) TypeError: xt.data is undefined

Tabs (other than Favorites) are empty, not showing generated images at all. This is with current automatic1111 as of 1/18/2021, https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/6faae2323963f9b0e0086a85b9d0472a24fbaa73

AlUlkesh commented 1 year ago

Some extensions had problems recently with new webui functions and/or new gradio versions.

Did you try updating all installed extensions and if that doesn't help to try a fresh install in a new folder?

IanD-FM commented 1 year ago

Actually I just figured it out, it only looks in the default SD folders for images. I copied and pasted some images in those folders and they showed up in images browser. I had changed my folders to be on a different drive, therefore the default folders were all empty, hence nothing showing up in images browser. Is there a way to select which folders it uses, or at least have it use the folders that SD is setup to use?

AlUlkesh commented 1 year ago

Well, it should use the folders setup for webui.

You can check your config.json. I've had it happen that entries have been in there multiple times.

This is how it looks for me:

    "outdir_samples": "",
    "outdir_txt2img_samples": "outputs/txt2img-images",
    "outdir_img2img_samples": "outputs/img2img-images",
    "outdir_extras_samples": "outputs/extras-images",
    "outdir_grids": "",
    "outdir_txt2img_grids": "outputs/txt2img-grids",
    "outdir_img2img_grids": "outputs/img2img-grids",
    "outdir_save": "log/images",
IanD-FM commented 1 year ago

Ok, I know what's going on... mine are like the following.

"outdir_samples": "G:\\ai-art\\a1111 outputs",
"outdir_txt2img_samples": "outputs/txt2img-images",
"outdir_img2img_samples": "outputs/img2img-images",
"outdir_extras_samples": "outputs/extras-images",

According to the SD Web UI, if the outdir_samples is filled in, it's supposed to override the ones below it. The image browser is not honoring that, and instead just going to the specific folders listed.

ghostsquad commented 1 year ago

ya, I need to put images on a totally different drive, so it would be nice if this extension allowed for configurable paths at minimum.

IanD-FM commented 1 year ago

An easy fix is to just fill in all the values in the SD WebUI settings page for paths with absolute paths for your folders, and then it will work.