mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 18:42:25 +07:00
[GH-ISSUE #217] [Bug] endless loading #185
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Physton/sd-webui-prompt-all-in-one#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZullD on GitHub (Sep 3, 2023).
Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/217
Issue Feedback
Describe the Issue
When an extension is enabled, there is an endless loading on the extensions page. And on pages with hypernet, embedding, lora, checkpoint.
Pressing the "Check for updates" button on extension tab and "Refresh" button on extranets tab helps to load information. But the timer and counter keep running. And the screen remains gray.



I cleaned the gradio cache and the pip. Without effect. Disabled all extensions except this one. The same thing. In all browsers. Opera, Edge, Chrome, Firefox. I also cleaned the cache in browsers. It doesn't help.
I have a lot of loras and checkpoints installed. Symbolic links lead to them on different disks.
Steps to Reproduce
No response
Screenshot or log
Absolutely no errors pop up during the load. The load is clean and error-free.
OS
Windows
Browser
Chrome
Stable Diffusion WebUI version
v1.6.0
Extension version
6a819041Python version
3.10.9
Gradio version
3.41.2 and 3.42.0
@Issues-translate-bot commented on GitHub (Sep 3, 2023):
Title: [Bug]
@ZullD commented on GitHub (Sep 3, 2023):
Now I found out one thing. If you open two windows with automatic1111 and click refresh in one window, and then wait until the tab with extranets is updated and at the moment when it is updated, switch to the second window and open the tab with extranets there. In the second window everything will be displayed normally, without the eternal loading time and gray shroud.
Perhaps the extension does not allow the web interface to send a signal to update-refresh information automatically after opening the tab with extranets and extensions. This is evidenced by manually launching the refresh and intercepting the response in the second window.
@Physton commented on GitHub (Sep 4, 2023):
I don't know how this situation occurred. In theory, this extension should not affect the loading of other functionalities.
Please provide more information for me to investigate:
@ZullD commented on GitHub (Sep 4, 2023):
Hello!
I use the API from yandex. But this does not affect in any way, since with a clean installation of the extension and disabling the translation function, exactly the same thing happens.
In the following directories inside the stable-diffusion-webui folder, I have created many symbolic links leading to different disks.
stable-diffusion-webui\models\Lora
stable-diffusion-webui\models\LyCORIS
stable-diffusion-webui\models\Stable-diffusion\
To be precise, on four different disks. About 15-20 links in each of these directories (Lora, LyCORIS, Stable-diffusion). And in total I have a little more than 3000 loras and about 500 checkpoints.
Symbolic links are created by a regular command in windows. This one.
mklink /j "C:\dir1" "D:\dir2"
I sent the information from storage to your email.
Thanks for the great extension. It is very functional!
@Physton commented on GitHub (Sep 4, 2023):
Sorry, I accidentally closed this issue.
I will take some time to carefully troubleshoot this issue.
@Physton commented on GitHub (Sep 5, 2023):
I used the storage file you provided and created the same symbolic link as you did, but I didn't test for this issue. Everything is working fine.
@Physton commented on GitHub (Sep 5, 2023):
I'm unable to reproduce the issue, so I don't know how to fix it.
@Physton commented on GitHub (Sep 7, 2023):
Just discovered that the code submitted in PR #214 causes the webpage to freeze for at least 10 seconds or more after each refresh. Therefore, I have disabled the code submitted in PR #214 for now. It's possible that this code is causing your issue. You can try again.
@ZullD commented on GitHub (Sep 7, 2023):
Unfortunately, it didn't help. Sadly. But in any case, thank you so much for the great extension! And thank you for continuing to improve it!
Apparently in my case this is some so specific bug. :-)
@ZullD commented on GitHub (Sep 12, 2023):
I figured out the problem in detail. And here's what I found out. The extension cannot work with more than 2000 loras. It's not about symbolic links, the problem is precisely in excess of the amount of loras or other hypernetworks (but I have more than 3500 thousand lora). I consistently added the amount of lora in the catalog (disabling symbolic links completely) and at a certain point, when exceeding 2000, everything began to hang with endless loading. The extension simply cannot digest such a large number of loras.
I did all this on a clean system where there was nothing else. The automatic was clean and just installed.
@ZullD commented on GitHub (Sep 12, 2023):
I think the number is from 2000 to 3000, because apparently the number of all hypernetworks and checkpoints is taken into account, and not each one individually.
@Physton commented on GitHub (Sep 12, 2023):
I'm glad you found the cause. However, fixing this bug is not easy. It requires downloading over 2000 Lora for testing, and I will take the time to do that. Additionally, have you used the Civitai hepler to generate info files for these Lora?
@ZullD commented on GitHub (Sep 12, 2023):
Yes. Information has been downloaded to all loras using the Civitai hepler. Picture and information file.
@ZullD commented on GitHub (Sep 12, 2023):
Definitely. If we take into account embeddings, hypernet, lora, lycoris and checkpoints, then the figure is closer to 3000.
@ZullD commented on GitHub (Sep 12, 2023):
And one more clarification. It is the number of files that matters. After a new scan, civitaihelper added a json file to each lora, embeddings, etc. Consequently, the total number of files increased by another quarter (it was 9000 and became 12000) and again there was an endless load.
Summing up the overall result. The total number of files in hypernet directories should not exceed 9000 (3000 directly by loras and so on and 3000 info and 3000 pictures) otherwise this bug occurs with infinite loading.
I did everything I could to catch and understand the reason for the error. I hope this information will be useful.
@Physton commented on GitHub (Sep 14, 2023):
Update to the latest version and see if it resolves your issue.
@ZullD commented on GitHub (Sep 14, 2023):
Yes! You fixed it! That's great! Thanks!