AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.39k stars 26.57k forks source link

[Bug]: Checkpoint previews/thumbnails do not display #13379

Open RoboFun3919 opened 1 year ago

RoboFun3919 commented 1 year ago

Is there an existing issue for this?

What happened?

No matter what I do, the previews for checkpoints, loras and anything similar do not render. Instead they show a gray image that says "NO PREVTFH" image

Even though I have named correctly and in the right place, they just don't show up image

Extensions like Civitai Helper were able to download and name the images properly, but still didn't render them image

The Model Previews extension hoverer, IS able to grab them, so I belive the issues lies in Automatic1111 image

Steps to reproduce the problem

  1. Go to the webui
  2. Press text2img
  3. Press Checkpoints
  4. ??? No one else seems to be having this issue, so I cannot say with certainty how to replicate it. I did a fresh install of Automatic1111 yesterday and still had the issue if that helps

What should have happened?

The thumbnails in the Checkpoints tab should display previews

Sysinfo

this doesn't seem to be working either... image image

What browsers do you use to access the UI ?

Google Chrome

Console logs

venv "C:\ai\new clean stable\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
You are up to date with the most recent release.
Launching Web UI with arguments: --autolaunch --update-check
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: C:\ai\new clean stable\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
Model Downloader v1.0.8
Checking Directories...
all Directories already Created.
2023-09-24 13:20:03,640 - ControlNet - INFO - ControlNet v1.1.410
ControlNet preprocessor location: C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-09-24 13:20:03,755 - ControlNet - INFO - ControlNet v1.1.410
Loading weights [94544f1a64] from C:\ai\new clean stable\stable-diffusion-webui\models\Stable-diffusion\spiritmixSoftAndCutesy2_CS2.safetensors
C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-webui-ar\scripts\sd-webui-ar.py:433: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  arc_calc_height = gr.Button(value="Calculate Height").style(
C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-webui-ar\scripts\sd-webui-ar.py:433: GradioDeprecationWarning: Use `scale` in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not.
  arc_calc_height = gr.Button(value="Calculate Height").style(
C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-webui-ar\scripts\sd-webui-ar.py:441: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  arc_calc_width = gr.Button(value="Calculate Width").style(
C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-webui-ar\scripts\sd-webui-ar.py:441: GradioDeprecationWarning: Use `scale` in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not.
  arc_calc_width = gr.Button(value="Calculate Width").style(
C:\ai\new clean stable\stable-diffusion-webui\extensions\sd-model-downloader\scripts\model-downloader.py:309: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  image.style(width=156, height=234)
Creating model from config: C:\ai\new clean stable\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: sdp-no-mem... done.
Model loaded in 3.7s (load weights from disk: 0.5s, create model: 0.4s, apply weights to model: 1.1s, load textual inversion embeddings: 0.9s, calculate empty prompt: 0.8s).
Running on local URL:  http://127.0.0.1:7860
Running on public URL: https://685e7aef4e70544d7c.gradio.live

This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)

Additional information

No response

RoboFun3919 commented 1 year ago

Update: removing adblocker did NOT fix it Deleting venv folder did NOT fix it

rcanand commented 6 months ago

I have this issue too - on windows and mac

rcanand commented 6 months ago

I was able to work around this (only for checkpoints, did not work for lora). Steps:

  1. Install Civitai Helper extension and restart.
  2. Go to CivitAI tab.
  3. In the first box, Scan Models for Civitai, check all model types and click Scan.
  4. After the scan is completed, go to txt2img tab and Checkpoints subtab. You may still not see previews of the installed checkpoints.
  5. Hover over each checkpoint and click on the tool icon that appears on the top right. You should see a dialog with a preview image for the checkpoint. Click Save. Now the preview in the checkpoints tab shows up.
  6. Do this for each checkpoint.

I tried to do the same for loras, but they did not have the preview in the dialog preview pane from step 5 above.