Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unselected checkpoint is loaded before generation #739

Open
5 of 6 tasks
isr431 opened this issue May 14, 2024 · 0 comments
Open
5 of 6 tasks

[Bug]: Unselected checkpoint is loaded before generation #739

isr431 opened this issue May 14, 2024 · 0 comments

Comments

@isr431
Copy link

isr431 commented May 14, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

When I generate an image, a unselected checkpoint is being loaded instead incorrectly. This happens randomly and isn't consistent. The checkpoint being loaded is the default model and the first model in the list, so it could be either causing the problem.

Steps to reproduce the problem

  1. Select a checkpoint
  2. Generate an image

What should have happened?

WebUI should only use the checkpoint loaded, not load another checkpoint without the user explicitly setting it to do so.

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

Sysinfo

sysinfo-2024-05-14-11-46.json

Console logs

venv "C:\Users\irawa\Downloads\Forge\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f0.0.17v1.8.0rc-latest-276-g29be1da7
Commit hash: 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
Launching Web UI with arguments: --ckpt C:\Users\irawa\Downloads\Models\Checkpoints\JuggernautXL_v9.safetensors --ckpt-dir C:\Users\irawa\Downloads\Models\Checkpoints --lora-dir C:\Users\irawa\Downloads\Models\LoRAs --vae-dir C:\Users\irawa\Downloads\Models\VAE --esrgan-models-path C:\Users\irawa\Downloads\Models\ESRGAN
Total VRAM 12282 MB, total RAM 65298 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 : native
Hint: your device supports --pin-shared-memory for potential speed improvements.
Hint: your device supports --cuda-malloc for potential speed improvements.
Hint: your device supports --cuda-stream for potential speed improvements.
VAE dtype: torch.bfloat16
CUDA Stream Activated:  False
Using pytorch cross attention
ControlNet preprocessor location: C:\Users\irawa\Downloads\Forge\models\ControlNetPreprocessor
[-] ADetailer initialized. version: 24.4.2, num models: 10
Loading weights [c9e3e68f89] from C:\Users\irawa\Downloads\Models\Checkpoints\JuggernautXL_v9.safetensors
2024-05-14 21:07:45,931 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
model_type EPS
UNet ADM Dimension 2816
IIB Database file has been successfully backed up to the backup folder.
Startup time: 10.5s (prepare environment: 2.3s, import torch: 2.8s, import gradio: 0.7s, setup paths: 0.7s, other imports: 0.4s, load scripts: 2.9s, create ui: 0.4s, gradio launch: 0.3s).
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE
extra {'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_g.logit_scale', 'cond_stage_model.clip_l.text_projection'}
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  11093.99609375
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  7925.641395568848
Moving model(s) has taken 0.50 seconds
Model loaded in 6.5s (load weights from disk: 0.5s, forge load real models: 5.3s, calculate empty prompt: 0.6s).
Calculating sha256 for C:\Users\irawa\Downloads\Models\Checkpoints\PonyDiffusion_v6.safetensors: 67ab2fd8ec439a89b3fedb15cc65f54336af163c7eb5e4f2acc98f090a29b0b3
Loading weights [67ab2fd8ec] from C:\Users\irawa\Downloads\Models\Checkpoints\PonyDiffusion_v6.safetensors
model_type EPS
UNet ADM Dimension 2816
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE
extra {'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'}
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  11051.265625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  7882.910926818848
Moving model(s) has taken 0.41 seconds
Model loaded in 11.5s (unload existing model: 0.4s, calculate hash: 4.6s, forge load real models: 6.0s, calculate empty prompt: 0.4s).
To load target model SDXLClipModel
Begin to load 1 model
Reuse 1 loaded models
[Memory Management] Current Free GPU Memory (MB) =  9284.578125
[Memory Management] Model Memory (MB) =  0.0
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  8260.578125
Moving model(s) has taken 0.70 seconds
To load target model SDXL
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  9249.08056640625
[Memory Management] Model Memory (MB) =  4897.086494445801
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  3327.994071960449
Moving model(s) has taken 1.30 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.15it/s]
To load target model AutoencoderKL████████████████████                                 | 25/50 [00:07<00:07,  3.27it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  6086.75048828125
[Memory Management] Model Memory (MB) =  159.55708122253418
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  4903.193407058716
Moving model(s) has taken 0.24 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.26it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:17<00:00,  2.79it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:17<00:00,  3.31it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5907.0546875
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2738.6999893188477
Moving model(s) has taken 0.61 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.32it/s]
Memory cleanup has taken 0.10 seconds█████████████████                                 | 25/50 [00:07<00:07,  3.29it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.28it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:17<00:00,  2.85it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:17<00:00,  3.33it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5904.6826171875
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2736.3279190063477
Moving model(s) has taken 0.56 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.29it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.25it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:17<00:00,  2.82it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:17<00:00,  3.27it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5903.5712890625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2735.2165908813477
Moving model(s) has taken 0.64 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.29it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.34it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:17<00:00,  2.88it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:17<00:00,  3.34it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5902.70947265625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2734.3547744750977
Moving model(s) has taken 0.53 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.32it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:08<00:00,  3.05it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:17<00:00,  2.87it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:17<00:00,  3.10it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5901.84765625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2733.4929580688477
Moving model(s) has taken 0.63 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.25it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.29it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:16<00:00,  2.95it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.14it/s]
Total progress:  50%|█████████████████████████████████                                 | 25/50 [00:07<00:07,  3.26it/s]
0: 640x448 1 face, 65.2ms
Speed: 4.5ms preprocess, 65.2ms inference, 32.0ms postprocess per image at shape (1, 3, 640, 448)
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5897.57275390625
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2729.2180557250977
Moving model(s) has taken 0.25 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 11/11 [00:03<00:00,  3.23it/s]
Memory cleanup has taken 0.14 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.30it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:20<00:00,  3.33it/s]
0: 640x448 1 face, 3.3ms
Speed: 1.0ms preprocess, 3.3ms inference, 1.0ms postprocess per image at shape (1, 3, 640, 448)
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5887.81298828125
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2719.4582901000977
Moving model(s) has taken 0.23 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 11/11 [00:03<00:00,  3.22it/s]
Memory cleanup has taken 0.10 seconds
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:26<00:00,  1.88it/s]
To load target model SDXLClipModel█████████████████████████████████████████████████████| 50/50 [00:26<00:00,  3.33it/s]
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5885.07373046875
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2716.7190322875977
Moving model(s) has taken 0.57 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.28it/s]
Total progress:  50%|█████████████████████████████████                                 | 25/50 [00:07<00:07,  3.23it/s]
0: 640x448 1 face, 4.1ms
Speed: 1.0ms preprocess, 4.1ms inference, 1.0ms postprocess per image at shape (1, 3, 640, 448)
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5871.80517578125
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2703.4504776000977
Moving model(s) has taken 0.23 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 11/11 [00:03<00:00,  3.26it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:07<00:00,  3.29it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:20<00:00,  3.30it/s]
0: 640x448 1 face, 4.5ms
Speed: 1.1ms preprocess, 4.5ms inference, 1.5ms postprocess per image at shape (1, 3, 640, 448)
To load target model SDXLClipModel
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  5866.10888671875
[Memory Management] Model Memory (MB) =  2144.3546981811523
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  2697.7541885375977
Moving model(s) has taken 0.26 seconds
100%|██████████████████████████████████████████████████████████████████████████████████| 11/11 [00:03<00:00,  3.22it/s]
Memory cleanup has taken 0.10 seconds
Total progress: 100%|██████████████████████████████████████████████████████████████████| 50/50 [00:26<00:00,  1.92it/s]
Loading weights [c9e3e68f89] from C:\Users\irawa\Downloads\Models\Checkpoints\JuggernautXL_v9.safetensors00,  3.30it/s]
model_type EPS
UNet ADM Dimension 2816
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE
extra {'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_g.logit_scale', 'cond_stage_model.clip_l.text_projection'}

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant