songweige / sd-webui-rich-text

117 stars 2 forks source link

Error messages after manual install in A1111 #2

Open strouder opened 9 months ago

strouder commented 9 months ago

Installed this via manual install of Vladimir / A1111 extensions but got these errors.

image

09:42:32-907617 INFO Loading UI theme: name=nota-ai/theme style=Dark Running on local URL: http://127.0.0.1:7860 09:42:37-015879 INFO Local URL: http://127.0.0.1:7860/ 09:42:37-017937 INFO Initializing middleware 09:42:37-221380 INFO [AgentScheduler] Task queue is empty 09:42:37-221380 INFO [AgentScheduler] Registering APIs 09:42:37-456963 INFO Model metadata saved: D:\AI\Vladimir\metadata.json 1 09:42:37-456963 INFO Startup time: 26.0s (torch=5.2s gradio=1.2s libraries=3.8s models=0.2s codeformer=0.1s scripts=10.1s onchange=0.8s ui-txt2img=0.3s ui-img2img=0.1s ui-settings=0.1s ui-extensions=3.0s ui-defaults=0.3s launch=0.3s app-started=0.3s checkpoint=0.1s) 09:43:22-194866 INFO Installing extension: https://github.com/songweige/sd-webui-rich-text into D:\AI\Vladimir\extensions\sd-webui-rich-text 09:43:36-974603 INFO Server shutdown requested Traceback (most recent call last): File "D:\AI\Vladimir\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "D:\AI\Vladimir\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api result = await self.call_function( File "D:\AI\Vladimir\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function prediction = await anyio.to_thread.run_sync( File "D:\AI\Vladimir\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\AI\Vladimir\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread return await future asyncio.exceptions.CancelledError 09:43:37-178571 WARNING WebSocket closed (ignore asyncio.exceptions.CancelledError) 09:43:39-220791 INFO Server will restart 09:43:39-944689 INFO Server restarting... 09:43:43-231853 INFO Server arguments: [] 09:43:43-231853 INFO Libraries loaded 09:43:43-235871 INFO Using data path: D:\AI\Vladimir 09:43:43-238877 INFO Available VAEs: D:\AI\Vladimir\models\VAE 4 09:43:43-239881 INFO Available models: D:\AI\Vladimir\models\Stable-diffusion 14 09:43:44-536521 INFO ControlNet v1.1.409 Warning: ControlNet failed to load SGM - will use LDM instead. [-] ADetailer initialized. version: 23.9.1, num models: 9 2023-09-27-09:43:47 image_browser.py: Module load: D:\AI\Vladimir\extensions\sd-webui-rich-text\scripts\rich_text_on_tab.py: ModuleNotFoundError ╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ D:\AI\Vladimir\modules\script_loading.py:13 in load_module ││ ││ 12 │ try: ││ ❱ 13 │ │ module_spec.loader.exec_module(module) ││ 14 │ except Exception as e: ││ in exec_module:883 ││ in _call_with_frames_removed:241 ││ ││ D:\AI\Vladimir\extensions\sd-webui-rich-text\scripts\rich_text_on_tab.py:16 in <module> ││ ││ 15 ││ ❱ 16 from scripts.models.utils.attention_utils import get_token_maps ││ 17 from scripts.models.region_diffusion import RegionDiffusion ││ ││ D:\AI\Vladimir\extensions\sd-webui-rich-text\scripts\models\utils\attention_utils.py:10 in <module> ││ ││ 9 from scripts.models.utils.richtext_utils import seed_everything ││ ❱ 10 from sklearn.cluster import KMeans, SpectralClustering ││ 11 │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ModuleNotFoundError: No module named 'sklearn' 09:43:48-294570 INFO Loading UI theme: name=nota-ai/theme style=Dark Running on local URL: http://127.0.0.1:7860 09:43:51-906437 INFO Local URL: http://127.0.0.1:7860/ 09:43:51-907435 INFO Initializing middleware 09:43:52-108475 INFO [AgentScheduler] Task queue is empty 09:43:52-110472 INFO [AgentScheduler] Registering APIs 09:43:52-238996 INFO Startup time: 9.0s (scripts=4.3s onchange=0.7s ui-txt2img=0.2s ui-img2img=0.1s ui-settings=0.1s ui-extensions=2.5s ui-defaults=0.1s launch=0.6s app-started=0.3s)

strouder commented 9 months ago

I will try updating Vlad and see if it solves it.

strouder commented 9 months ago

It didnt solve it.

image image image

songweige commented 9 months ago

Thank you for providing the detailed log and trying to solve it with the update. I think there is a missing package in the environment. I have updated the install.py. Could you please try again? Let me know if this solves the issue or not!