civitai / sd_civitai_extension

All of the Civitai models inside Automatic 1111 Stable Diffusion Web UI
MIT License
2.34k stars 443 forks source link

Systematic Connected/Disconnected loop when connecting to an instance from the Civitai.com site. #80

Open Alyndiar opened 1 year ago

Alyndiar commented 1 year ago

For about a week, I've been getting systematic Connected/Disconnected loop when connecting to an instance from the Civitai.com site. If I don't connect to an instance, the sd_civitai_extension will still detect new models added to the correct folders and download preview images but I am unable to use the extension otherwise. I cannot get Add to SD buttons or see if I already have the Model/Lora/Textual inversion already installed.

Here is my version info :

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

Python revision: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Civitai Link revision: 50f61e1297d11249a6b7c9a979f95df65da38d1f
SD-WebUI revision: 3b11f17a374520e493e120e7f47443acd97393c8

Checking Civitai Link requirements...
[+] python-socketio[client] version 5.7.2 installed.

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

Here is the console log, including all Civitai events, the detection of new models and the download of preview images. After this, the connect/disconnect cycle continues until I disconnect from the instance on the Civitai.com browser page :

Civitai: API loaded
Applying attention optimization: xformers... done.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai Link: Connecting to Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 262.2s (import torch: 4.4s, import gradio: 2.1s, import ldm: 7.8s, other imports: 4.7s, setup codeformer: 0.2s, list SD models: 31.1s, load scripts: 164.8s, scripts before_ui_callback: 0.5s, create ui: 39.5s, gradio launch: 3.1s, app_started_callback: 3.8s).
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Connected to Civitai Instance
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
preload_extensions_git_metadata for 34 extensions took 7.95s
Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\AbsinthePunkAI.safetensors: Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\AbsinthePunkAI.safetensors: a918ce4c32a92cebb2d952203f87335ebfb4b37449f58f3d3061b3b088e8c4b5
a918ce4c32a92cebb2d952203f87335ebfb4b37449f58f3d3061b3b088e8c4b5
Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\ChronomancyAI.safetensors: Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\ChronomancyAI.safetensors: 9cbb5951d27a993ca19ac731588a2f32032b5ba0c8a1fc7f5cc1d0c740c861fc
9cbb5951d27a993ca19ac731588a2f32032b5ba0c8a1fc7f5cc1d0c740c861fc
Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\GlowingRunesAIv4.safetensors: Calculating sha256 for W:\seait\stable-diffusion-webui\models\Lora\Transform\GlowingRunesAIv4.safetensors: 57cb9f81be22c6a11551be5337550462eae7805baaf96ab148822bc601f2226c
57cb9f81be22c6a11551be5337550462eae7805baaf96ab148822bc601f2226c
Civitai: Found 212 resources missing preview images
Civitai Link: Disconnected from Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai Link: Disconnected from Civitai Link Server
Civitai: Found 4 hash matches
Civitai: Downloading: "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/ddf40584-a96a-45da-9568-982608a9a5eb/width=450/1106350.jpeg" to W:\seait\stable-diffusion-webui\models\Lora\Transform\GlowingRunesAIv4.preview.png

36.5kB [00:00, 18.8MB/s]
Civitai: Downloading: "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/2fbbdd3a-4940-43a3-bca1-d9d755f93d71/width=450/1126685.jpeg" to W:\seait\stable-diffusion-webui\models\Lora\Transform\AbsinthePunkAI.preview.png

33.1kB [00:00, 9.75MB/s]
Civitai: Downloading: "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/780b0b4d-3259-4c7a-aec5-ae652474d970/width=450/1138445.jpeg" to W:\seait\stable-diffusion-webui\models\Lora\Transform\ChronomancyAI.preview.png

Civitai Link: Connected to Civitai Link Server
0.00B [00:00, ?B/s]Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
45.3kB [00:00, 9.35MB/s]Civitai Link: Presence update: SD: 1, Clients: 1

Civitai: Downloading: "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/8483b948-7ab0-4049-b074-7eb8d0b0ba80/width=450/1141766.jpeg" to W:\seait\stable-diffusion-webui\models\Lora\Art_obui-01.preview.png

Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
52.1kB [00:00, 2.39MB/s]
Civitai: Updated 4 preview images
Civitai Link: Disconnected from Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai Link: Disconnected from Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai Link: Disconnected from Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai Link: Disconnected from Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room d5bb2f3a8fcc482deb9cd74cfd3fa603de34321ed6c247f3b7a0e068dbf7bd14988f8d98f66f8978e372617f55327e827ef2ca8a936d7d2e02274aa3f674a9eb
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai Link: Disconnected from Civitai Link Server