hinablue / sd-forge-adetailer

GNU General Public License v3.0
18 stars 1 forks source link

After generating an image, the screen freeze occurs. #2

Closed hben35096 closed 2 months ago

hben35096 commented 7 months ago

There is approximately a 5% probability that after enabling adetailer, in situations where only a single image is generated, the window displaying the generated image stops refreshing while other operations continue to function normally, and the background code also runs as expected.

When opting to generate multiple images at once, this issue does not seemingly arise (though it might just be that it hasn't been encountered yet). PixPin_2024-03-21_01-14-58

/mnt/workspace/stable-diffusion-webui-forge
Python 3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0]
Version: f0.0.17v1.8.0rc-latest-273-gb9705c58
Commit hash: b9705c58f66c6fd2c4a0168b26c5cf1fa6c0dde3
Launching Web UI with arguments: --no-download-sd-model --xformers --enable-insecure-extension-access --no-half --theme=dark --port=6006
Total VRAM 22732 MB, total RAM 30179 MB
xformers version: 0.0.24+cu118
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA A10 : native
VAE dtype: torch.bfloat16
CUDA Stream Activated:  False
Using xformers cross attention
ControlNet preprocessor location: /mnt/workspace/stable-diffusion-webui-forge/models/ControlNetPreprocessor
[-] ADetailer initialized. version: 24.3.0, num models: 10
sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [d4656d332f] from /mnt/workspace/stable-diffusion-webui-forge/models/Stable-diffusion/sd_xl/dreamshaperXL_lightningDPMSDE.safetensors
2024-03-21 00:59:28,558 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  [http://127.0.0.1:6006]
model_type EPS
UNet ADM Dimension 2816
Using xformers attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using xformers attention in VAE

To create a public link, set `share=True` in `launch()`.
Startup time: 72.2s (prepare environment: 1.6s, import torch: 2.9s, import gradio: 0.8s, setup paths: 0.7s, other imports: 0.3s, load scripts: 62.1s, create ui: 0.5s, gradio launch: 2.4s, app_started_callback: 0.8s).
extra {'cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.text_projection', 'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids'}
left over keys: dict_keys(['conditioner.embedders.0.logit_scale', 'conditioner.embedders.0.text_projection'])
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  22505.12109375
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  19336.766395568848
Moving model(s) has taken 0.23 seconds
Model loaded in 4.3s (load weights from disk: 0.9s, forge load real models: 3.0s, calculate empty prompt: 0.3s).
2024-03-21 01:03:01,528 - ControlNet - INFO - Preview Resolution = 512
Automatic Memory Management: 368 Modules in 0.11 seconds.
2024-03-21 01:03:08,836 - ControlNet - INFO - ControlNet Input Mode: InputMode.SIMPLE
2024-03-21 01:03:08,836 - ControlNet - INFO - Using preprocessor: depth_leres
2024-03-21 01:03:08,836 - ControlNet - INFO - preprocessor resolution = 512
Automatic Memory Management: 2 Modules in 0.08 seconds.
2024-03-21 01:03:09,199 - ControlNet - INFO - Current ControlNet ControlNetPatcher: /mnt/workspace/stable-diffusion-webui-forge/models/ControlNet/ControlNet_v11_fp16/sai_xl_depth_256lora.safetensors

Total progress: 0it [00:00, ?it/s]2024-03-21 01:03:09,475 - ControlNet - INFO - ControlNet Method depth_leres patched.
To load target model SDXL
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  20652.94775390625
[Memory Management] Model Memory (MB) =  4897.086494445801
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  14731.86125946045
Moving model(s) has taken 0.61 seconds
  0%|                                                     | 0/4 [00:00<?, ?it/s]
 25%|███████████▎                                 | 1/4 [00:01<00:03,  1.04s/it]
 50%|██████████████████████▌                      | 2/4 [00:01<00:01,  1.03it/s]
 75%|█████████████████████████████████▊           | 3/4 [00:02<00:00,  1.14it/s]
100%|█████████████████████████████████████████████| 4/4 [00:03<00:00,  1.33it/s]
2024-03-21 01:03:13,451 - ControlNet - INFO - ControlNet Method depth_leres patched.
To load target model SDXL
Begin to load 1 model
Reuse 1 loaded models
[Memory Management] Current Free GPU Memory (MB) =  15650.5439453125
[Memory Management] Model Memory (MB) =  0.0
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  14626.5439453125
Moving model(s) has taken 0.03 seconds
  0%|                                                     | 0/4 [00:00<?, ?it/s]
 25%|███████████▎                                 | 1/4 [00:02<00:07,  2.59s/it]
 50%|██████████████████████▌                      | 2/4 [00:05<00:05,  2.59s/it]
 75%|█████████████████████████████████▊           | 3/4 [00:07<00:02,  2.58s/it]
100%|█████████████████████████████████████████████| 4/4 [00:09<00:00,  2.26s/it]
To load target model AutoencoderKL
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  17367.634765625
[Memory Management] Model Memory (MB) =  159.55708122253418
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  16184.077684402466
Moving model(s) has taken 0.30 seconds

Total progress: 100%|█████████████████████████████| 8/8 [00:15<00:00,  1.94s/it]
2024-03-21 01:03:33,905 - ControlNet - INFO - ControlNet Input Mode: InputMode.SIMPLE
2024-03-21 01:03:33,905 - ControlNet - INFO - Using preprocessor: depth_leres
2024-03-21 01:03:33,905 - ControlNet - INFO - preprocessor resolution = 512
Automatic Memory Management: 2 Modules in 0.08 seconds.
2024-03-21 01:03:34,144 - ControlNet - INFO - Current ControlNet ControlNetPatcher: /mnt/workspace/stable-diffusion-webui-forge/models/ControlNet/ControlNet_v11_fp16/sai_xl_depth_256lora.safetensors
2024-03-21 01:03:34,146 - ControlNet - INFO - ControlNet Method depth_leres patched.
To load target model SDXL
Begin to load 1 model
Reuse 1 loaded models
[Memory Management] Current Free GPU Memory (MB) =  17245.0732421875
[Memory Management] Model Memory (MB) =  0.0
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  16221.0732421875
Moving model(s) has taken 0.03 seconds
  0%|                                                     | 0/4 [00:00<?, ?it/s]
 25%|███████████▎                                 | 1/4 [00:00<00:02,  1.09it/s]
 50%|██████████████████████▌                      | 2/4 [00:01<00:01,  1.09it/s]
 75%|█████████████████████████████████▊           | 3/4 [00:02<00:00,  1.19it/s]
100%|█████████████████████████████████████████████| 4/4 [00:02<00:00,  1.39it/s]
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
mediapipe: 1 detected.
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  17244.25390625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  14075.899208068848
Moving model(s) has taken 0.23 seconds
To load target model SDXL
Begin to load 1 model
Reuse 1 loaded models
[Memory Management] Current Free GPU Memory (MB) =  15472.7158203125
[Memory Management] Model Memory (MB) =  0.0
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  14448.7158203125
Moving model(s) has taken 0.03 seconds
100%|█████████████████████████████████████████████| 1/1 [00:00<00:00,  3.47it/s]

Total progress: 100%|█████████████████████████████| 4/4 [00:04<00:00,  1.17s/it]