AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Mouseover tooltips no longer works #7534

Closed Harvester62 closed 1 year ago

Harvester62 commented 1 year ago

Is there an existing issue for this?

What happened?

When hovering the mouse to an option that previously had a tooltip doesn't display the related tooltip. This happens everywhere in the SD Web UI.

Steps to reproduce the problem

Hover the mouse over an item in the UI that has a tooltip associated, like for example Batch or Batch Size (but this happens with any others too), and nothing pops up.

What should have happened?

The associated tooltip to be displayed on mouse hovering.

Commit where the problem happens

3e0f9a75438fa815429b5530261bcf7d80f3f101

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--xformers --opt-split-attention --disable-safe-unpickle --api --deepdanbooru --allow-code --administrator --medvram --theme dark --cors-allow-origins=http://localhost:5173,https://www.painthua.com

List of extensions

As a translator, I do have the majority of Scripts and Extensions installed. Here is a screenshot: immagine

Console logs

Premere un tasto per continuare . . .
venv "C:\stable-diffusion-webui\venv\Scripts\Python.exe"
Checking for accelerate
Accelerating
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 3e0f9a75438fa815429b5530261bcf7d80f3f101
Installing requirements for Web UI

[auto-sd-paint-ext] Commit hash: 2358931f57f1faee4196d87dd5323473948890dc
[auto-sd-paint-ext] Auto-update disabled.

Installing requirements for Batch Face Swap

Installing requirements for scikit_learn

Installing requirements for Prompt Gallery

Installing sd-dynamic-prompts requirements.txt

Initializing Riffusion

#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Dreambooth revision: 21ddebabb47274255d516e655f997d9ddadc0fe4
SD-WebUI revision: 3e0f9a75438fa815429b5530261bcf7d80f3f101

[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.16rc425 installed.
[+] torch version 1.13.1+cu117 installed.
[+] torchvision version 0.14.1+cu117 installed.

#######################################################################################################

loading Smart Crop reqs from C:\stable-diffusion-webui\extensions\sd_smartprocess\requirements.txt
Checking Smart Crop requirements.

Installing imageio-ffmpeg requirement for depthmap script
Installing pyqt5 requirement for depthmap script

Launching Web UI with arguments: --xformers --opt-split-attention --disable-safe-unpickle --api --deepdanbooru --allow-code --administrator --medvram --theme dark --cors-allow-origins=http://localhost:5173,https://www.painthua.com
Loading booru2prompt settings
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Hypernetwork-MonkeyPatch-Extension found!
SD-Webui API layer loaded
Installing pywin32
Loading weights [9012b038a9] from C:\stable-diffusion-webui\models\Stable-diffusion\sd-v1-5-pruned-emaonly_fp16.ckpt
Creating model from config: C:\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(8): bad_prompt_version2, midjourney-style, Style-Autumn-neg, Style-Autumn, Style-Glorious-neg, Style-Glorious, Style-Winter-neg, Style-Winter
Model loaded in 2.7s (load weights from disk: 0.7s, load config: 0.2s, create model: 0.5s, apply weights to model: 0.5s, apply half(): 0.8s).
1920 1080
1030
INFO:     Started server process [19812]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:5173 (Press CTRL+C to quit)
INFO:     127.0.0.1:57537 - "GET / HTTP/1.1" 200 OK
add tab
[tag-editor] Settings has been read from config.json
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
auto-sd-paint-ext:INFO: Add --listen to COMMANDLINE_ARGS to enable usage as a remote backend.

Total progress: 0it [00:00, ?it/s]

Additional information

Since this happened before (#5860) and the problem was a missing comma in the file hints.js, I checked it but it seems fine to me.

Harvester62 commented 1 year ago

Has anybody looked into this issue? Tooltips are important for the usability of the program.

Harvester62 commented 1 year ago

Hi @ClashSAN , sorry to bother you but I think this is an important feature not currently working properly, and @AUTOMATIC1111 is probably not aware of it or too busy. I think the mouse over tooltips should be restored as soon as possible also because it's making my translation work harder, not knowing what tooltips messages are currently to be maintained and translated and what should I remove from the localization file. Perhaps, the policy for tooltips has been changed recently, and I am not aware of it, so I would appreciate very much to receive some feedback about this matter. Nonetheless, I will continue to do my translation work on the Web UI, Scripts and Extensions. Thank you for your consideration and attention. Best regards.

LizardMods commented 1 year ago

I was able to fix my tooltips. I found that it was an extension that broke them. I don't have a lot of extensions installed so it is possible that other extensions could break tooltips but the one that I found that broke it was Prompt Generator.

I have already submitted an issue here

Harvester62 commented 1 year ago

Thank you @LizardMods , I read your bug report in the other repository and I will check your discovery in my local installation. It seems that what you found might be effectively the source of the issue, looking at the extension's code.

Harvester62 commented 1 year ago

I made a search for any hints.js file inside my \extensions folder and I found the following extensions:

immagine

Possibly, also the gif2gif extension might be a source of this issue, given its content very similar to the hints.js of Prompt Generator. The other two extensions have adopted a different approach, with both the file naming and the content itself. I am not a programmer but this seems easily fixable by their respective developers, hopefully.

Harvester62 commented 1 year ago

I have created a PR on both Prompt Generator and gif2gif repositories. The solution was to rename the hints.js file and correct the code inside. I tested them in my local installation and finally I can view all the tooltips! As soon as the two authors will accept the PRs I think I can then close this bug report.

This is also my first contribution as a "coder" to fix a problem, quite easy to be honest.

Harvester62 commented 1 year ago

My above two PRs have been accepted and merged, therefore I am closing this bug report.

Harvester62 commented 1 year ago

Happy to have given my small contribution also by coding a little.

joytsay commented 1 year ago

just to add to this sd-webui-controlnet broke tooltips and was fixed with recents commit updates: https://github.com/Mikubill/sd-webui-controlnet/commit/6f394dfd183eb5abc504ef49b4f7b52ffa9f41f8

Harvester62 commented 1 year ago

I haven't yet updated ControlNet to v1.1, still using v1.0 which doesn't have its own \javascript\hints.js file. So, I cannot tell if this is now creating the same identical problem of the two other extensions, but looking inside the sd-webui-controlnet/javascript/ directory there is a file named hints.js which for sure overrides the current one by A1111, exactly as it happened for the other two extensions I fixed.

If this is the case, then I would recommend the developer to rename and modify accordingly the hints.js file in ControlNet (look at the fix I made for the other extension as a template), and the problem should then be fixed.