stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Image always black

Open Impre-visible opened this issue 2 years ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

When I generate an image with any of the checkpoints I have a black image, but no errors. I tried with "v2-1_768-nonema-pruned.safetensors", "cyberrealistic_v33.safetensors" and "v1-5-pruned-emaonly.safetensors". I also tried multiple sampling methods, "DPM++ 2M Karas", "Euler", "DPM Fast"

I'm on ubuntu 22.04 and my browser is chromium

Steps to reproduce the problem

  1. Load a model
  2. Put the prompt you want
  3. Press generate
  4. See the black image

What should have happened?

Normally I should have my generated image

Sysinfo

https://pastebin.com/ZkXkBpKS

What browsers do you use to access the UI ?

Other

Console logs

Total progress: 100%|██████████| 20/20 [00:45<00:00,  2.26s/it]
0|stable-diffusion  | Reusing loaded model v2-1_768-nonema-pruned.safetensors [ff144a4984] to load cyberrealistic_v33.safetensors [3c8530cb22]
0|stable-diffusion  | Loading weights [3c8530cb22] from /mnt/Projets/stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/cyberrealistic_v33.safetensors
0|stable-diffusion  | Creating model from config: /mnt/Projets/stable-diffusion-webui/stable-diffusion-webui/configs/v1-inference.yaml
0|stable-diffusion  | Applying attention optimization: Doggettx... done.
0|stable-diffusion  | Model loaded in 6.4s (create model: 0.1s, apply weights to model: 6.1s).
  0%|          | 0/20 [00:00<?, ?it/s]
  5%|▌         | 1/20 [00:02<00:43,  2.29s/it], ?it/s]
 10%|█         | 2/20 [00:03<00:26,  1.47s/it]0:08,  2.23it/s]
 15%|█▌        | 3/20 [00:05<00:30,  1.81s/it]0:20,  1.18s/it]
 20%|██        | 4/20 [00:07<00:31,  1.96s/it]0:24,  1.56s/it]
 25%|██▌       | 5/20 [00:09<00:31,  2.08s/it]0:27,  1.82s/it]
 30%|███       | 6/20 [00:12<00:29,  2.12s/it]0:27,  1.95s/it]
 35%|███▌      | 7/20 [00:14<00:27,  2.15s/it]0:26,  2.03s/it]
 40%|████      | 8/20 [00:16<00:26,  2.18s/it]0:25,  2.10s/it]
 45%|████▌     | 9/20 [00:18<00:24,  2.20s/it]0:23,  2.14s/it]
 50%|█████     | 10/20 [00:20<00:22,  2.20s/it]0:21,  2.16s/it]
 55%|█████▌    | 11/20 [00:23<00:19,  2.20s/it]0:19,  2.17s/it]
 60%|██████    | 12/20 [00:25<00:17,  2.21s/it]0:17,  2.19s/it]
 65%|██████▌   | 13/20 [00:27<00:15,  2.21s/it]0:15,  2.20s/it]
 70%|███████   | 14/20 [00:29<00:13,  2.23s/it]0:13,  2.22s/it]
 75%|███████▌  | 15/20 [00:32<00:11,  2.24s/it]0:11,  2.24s/it]
 80%|████████  | 16/20 [00:34<00:08,  2.25s/it]0:08,  2.24s/it]
 85%|████████▌ | 17/20 [00:36<00:06,  2.26s/it]0:06,  2.26s/it]
 90%|█████████ | 18/20 [00:38<00:04,  2.26s/it]0:04,  2.26s/it]
 95%|█████████▌| 19/20 [00:41<00:02,  2.25s/it]0:02,  2.25s/it]
Total progress: 100%|██████████| 20/20 [00:45<00:00,  2.27s/it]
  0%|          | 0/20 [00:00<?, ?it/s] [00:45<00:00,  2.29s/it]
  5%|▌         | 1/20 [00:00<00:17,  1.06it/s], ?it/s]
 10%|█         | 2/20 [00:04<00:44,  2.48s/it]0:20,  1.11s/it]
 15%|█▌        | 3/20 [00:06<00:40,  2.36s/it]0:26,  1.59s/it]
 20%|██        | 4/20 [00:08<00:36,  2.30s/it]0:29,  1.82s/it]
 25%|██▌       | 5/20 [00:11<00:34,  2.29s/it]0:29,  1.96s/it]
 30%|███       | 6/20 [00:13<00:31,  2.28s/it]0:28,  2.07s/it]
 35%|███▌      | 7/20 [00:15<00:29,  2.26s/it]0:27,  2.12s/it]
 40%|████      | 8/20 [00:17<00:26,  2.24s/it]0:25,  2.15s/it]
 45%|████▌     | 9/20 [00:20<00:24,  2.23s/it]0:23,  2.17s/it]
 50%|█████     | 10/20 [00:22<00:22,  2.22s/it]0:21,  2.18s/it]
 55%|█████▌    | 11/20 [00:24<00:19,  2.22s/it]0:19,  2.19s/it]
 60%|██████    | 12/20 [00:26<00:17,  2.21s/it]0:17,  2.23s/it]
 65%|██████▌   | 13/20 [00:28<00:15,  2.21s/it]0:15,  2.18s/it]
 70%|███████   | 14/20 [00:31<00:13,  2.21s/it]0:13,  2.19s/it]
 75%|███████▌  | 15/20 [00:33<00:11,  2.21s/it]0:10,  2.19s/it]
 80%|████████  | 16/20 [00:35<00:08,  2.20s/it]0:08,  2.20s/it]
 85%|████████▌ | 17/20 [00:37<00:06,  2.21s/it]0:06,  2.20s/it]
 90%|█████████ | 18/20 [00:39<00:04,  2.20s/it]0:04,  2.20s/it]
 95%|█████████▌| 19/20 [00:42<00:02,  2.20s/it]0:02,  2.20s/it]
100%|██████████| 20/20 [00:44<00:00,  2.22s/it]0:00,  2.20s/it]
Total progress: 100%|██████████| 20/20 [00:46<00:00,  2.30s/it]
  0%|          | 0/20 [00:00<?, ?it/s]
  5%|▌         | 1/20 [00:01<00:25,  1.37s/it]
 10%|█         | 2/20 [00:03<00:33,  1.86s/it], ?it/s]
 15%|█▌        | 3/20 [00:05<00:34,  2.02s/it]
 20%|██        | 4/20 [00:07<00:33,  2.09s/it]
 25%|██▌       | 5/20 [00:10<00:32,  2.19s/it]0:59,  3.31s/it]
 30%|███       | 6/20 [00:12<00:31,  2.26s/it]
 35%|███▌      | 7/20 [00:15<00:29,  2.29s/it]
 40%|████      | 8/20 [00:17<00:27,  2.31s/it]1:23,  4.89s/it]
 45%|████▌     | 9/20 [00:19<00:25,  2.31s/it]
 50%|█████     | 10/20 [00:22<00:23,  2.30s/it]
 55%|█████▌    | 11/20 [00:24<00:20,  2.28s/it]:30,  5.66s/it]
 60%|██████    | 12/20 [00:26<00:18,  2.26s/it]
 65%|██████▌   | 13/20 [00:28<00:15,  2.25s/it]
 70%|███████   | 14/20 [00:30<00:13,  2.23s/it]:30,  6.01s/it]
 75%|███████▌  | 15/20 [00:33<00:11,  2.26s/it]
 80%|████████  | 16/20 [00:35<00:09,  2.27s/it]
 85%|████████▌ | 17/20 [00:37<00:06,  2.26s/it]:27,  6.28s/it]
 90%|█████████ | 18/20 [00:39<00:04,  2.25s/it]
 95%|█████████▌| 19/20 [00:42<00:02,  2.23s/it]
100%|██████████| 20/20 [00:44<00:00,  2.23s/it]:23,  6.40s/it]

Additional information

No response

Impre-visible avatar Oct 22 '23 10:10 Impre-visible

For information, I got the problem after I restarted the webui

Impre-visible avatar Oct 22 '23 10:10 Impre-visible

After restarting many times, changing the model etc... It works

Impre-visible avatar Oct 22 '23 11:10 Impre-visible

Wait no, until the generation is not finished I can see the image, but when the generation hit 100%, the image become black

Impre-visible avatar Oct 22 '23 11:10 Impre-visible

image image Here you can see what I mean

Impre-visible avatar Oct 22 '23 11:10 Impre-visible

same here, also Ubuntu 22.04 on Linux, NVIDIA 4090

byteconcepts avatar Nov 15 '23 13:11 byteconcepts

same problem running AMD rx 6600 with fedora 39

matrix543 avatar Feb 05 '24 17:02 matrix543

same problem on the 1660 super

Kalamya avatar Apr 09 '24 15:04 Kalamya