You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we load certain adapters, a black image is generated.
During inference the following noticeable error occurs:
/lib/python3.10/site-packages/diffusers/image_processor.py:88: RuntimeWarning: invalid value encountered in cast
images = (images * 255).round().astype("uint8")
This is probably an issue too, but the main issue is that if we fuse the faulty adapter with the base model for a faster inference, then the unfuse does not reverse the fuse completely, leading to black images generated for all the following adapters
Reproduced with the script provided below, on diffusers@main branch on T4 and A10G gpus, not reproduced if we remove the fuse/unfuse lines (only adapter2 gets a black screen)
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:41<00:00, 5.95s/it]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:01<00:00, 1.54s/it]
Adapter nerijs/pixel-art-xl, md5sum 7906455789f5fdfd94f0793d4c026563
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.63it/s]
/home/drive/venvs/api-inference-community/lib/python3.10/site-packages/diffusers/image_processor.py:88: RuntimeWarning: invalid value encountered in cast
images = (images *255).round().astype("uint8")
Adapter Alexzyx/lora-trained-xl-colab, md5sum 40c78c9fd4daeff01c988c3532fdd51b
BLACK SCREEN IMAGE for adapter Alexzyx/lora-trained-xl-colab
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.62it/s]
Adapter nerijs/pixel-art-xl, md5sum 40c78c9fd4daeff01c988c3532fdd51b
BLACK SCREEN IMAGE for adapter nerijs/pixel-art-xl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.61it/s]
Adapter nerijs/pixel-art-xl, md5sum 40c78c9fd4daeff01c988c3532fdd51b
BLACK SCREEN IMAGE for adapter nerijs/pixel-art-xl
### System Info
- `diffusers` version: 0.22.0.dev0
- Platform: Linux-6.2.0-1012-aws-x86_64-with-glibc2.35
- Python version: 3.10.12
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- Huggingface_hub version: 0.17.2
- Transformers version: 4.31.0
- Accelerate version: 0.21.0
- xFormers version: not installed
- Using GPU in script?: yes
- Using distributed or parallel set-up in script?: no
### Who can help?
@sayakpaul @patrickvonplaten
The text was updated successfully, but these errors were encountered:
Describe the bug
When we load certain adapters, a black image is generated.
During inference the following noticeable error occurs:
This is probably an issue too, but the main issue is that if we fuse the faulty adapter with the base model for a faster inference, then the unfuse does not reverse the fuse completely, leading to black images generated for all the following adapters
Reproduced with the script provided below, on diffusers@main branch on T4 and A10G gpus, not reproduced if we remove the fuse/unfuse lines (only adapter2 gets a black screen)
Reproduction
Logs
The text was updated successfully, but these errors were encountered: