repo stringclasses 1
value | github_id int64 1.27B 4.22B | github_node_id stringlengths 18 18 | number int64 8 13.4k | html_url stringlengths 49 53 | api_url stringlengths 59 63 | title stringlengths 1 402 | body stringlengths 1 62.9k ⌀ | state stringclasses 2
values | state_reason stringclasses 4
values | locked bool 2
classes | comments_count int64 0 99 | labels listlengths 0 5 | assignees listlengths 0 5 | created_at stringdate 2022-06-09 16:28:35 2026-04-07 08:05:37 | updated_at stringdate 2022-06-12 22:18:01 2026-04-07 13:03:55 | closed_at stringdate 2022-06-12 22:18:01 2026-04-07 07:59:44 ⌀ | author_association stringclasses 3
values | milestone_title stringclasses 0
values | snapshot_id stringclasses 1
value | extracted_at stringdate 2026-04-07 13:34:13 2026-04-07 13:34:13 | author_login stringlengths 3 28 | author_id int64 1.54k 258M | author_node_id stringlengths 12 20 | author_type stringclasses 3
values | author_site_admin bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
huggingface/diffusers | 1,266,387,205 | I_kwDOHa8MBc5Le4kF | 8 | https://github.com/huggingface/diffusers/issues/8 | https://api.github.com/repos/huggingface/diffusers/issues/8 | Schedulers - what code should go into a "Scheduler" class? | At the moment, the scheduler class has very little logic -> see: https://github.com/huggingface/diffusers/blob/2852c80540ed9a9a435bb8b2ce9e393811af519c/src/diffusers/schedulers/gaussian_ddpm.py#L26
where as the example of the unrolled denoising process is getting quite complicated (copied from the README):
```py... | closed | completed | false | 0 | [] | [] | 2022-06-09T16:28:35Z | 2022-06-12T22:18:01Z | 2022-06-12T22:18:01Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,275,402,881 | I_kwDOHa8MBc5MBRqB | 23 | https://github.com/huggingface/diffusers/issues/23 | https://api.github.com/repos/huggingface/diffusers/issues/23 | Adding Diffusion Planning Model from "Planning with Diffusion for Flexible Behavior Synthesis" | Hi! First off, thanks for creating this awesome library, excited to see where it goes!
I did see in the README that there's a TODO for adding the RL model from https://github.com/jannerm/diffuser, and I recently saw https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_rl.py. Is this actively... | closed | completed | false | 0 | [] | [] | 2022-06-17T19:51:46Z | 2022-06-20T05:05:32Z | 2022-06-20T05:05:32Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | shyamsn97 | 18,158,178 | MDQ6VXNlcjE4MTU4MTc4 | User | false |
huggingface/diffusers | 1,276,387,718 | I_kwDOHa8MBc5MFCGG | 25 | https://github.com/huggingface/diffusers/issues/25 | https://api.github.com/repos/huggingface/diffusers/issues/25 | Support batches in noise scheduler | Firstly, kudos to the HF team for building this awesome library!
I would like to propose some modifications to the DDPM noise scheduler (and potentially other schedulers) to support batching. Based on [`training_ddpm.py`](https://github.com/huggingface/diffusers/blob/main/examples/train_ddpm.py), it appears that the... | closed | completed | false | 2 | [] | [
"anton-l"
] | 2022-06-20T05:31:14Z | 2022-06-22T11:39:56Z | 2022-06-22T11:39:55Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | jaketae | 25,360,440 | MDQ6VXNlcjI1MzYwNDQw | User | false |
huggingface/diffusers | 1,272,010,353 | I_kwDOHa8MBc5L0VZx | 10 | https://github.com/huggingface/diffusers/issues/10 | https://api.github.com/repos/huggingface/diffusers/issues/10 | Missing `transformers` requirement | Dependencies don't mention `transformers`
https://github.com/huggingface/diffusers/blob/850d43450f2154d586c1cb226ca17ec53765e2a2/setup.py#L78-L91
However, importing from the quickstart fails without `transformers` installed:
```py
In [1]: import torch
In [2]: from diffusers import UNetModel, DDPMScheduler
... | closed | completed | false | 2 | [] | [
"anton-l"
] | 2022-06-15T10:21:14Z | 2022-06-22T11:48:28Z | 2022-06-22T11:48:28Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | LysandreJik | 30,755,778 | MDQ6VXNlcjMwNzU1Nzc4 | User | false |
huggingface/diffusers | 1,279,579,176 | I_kwDOHa8MBc5MRNQo | 30 | https://github.com/huggingface/diffusers/issues/30 | https://api.github.com/repos/huggingface/diffusers/issues/30 | example script doesn't work with pip install | The pip package doesn't include any of these:
from diffusers.modeling_utils import unwrap_model
from diffusers.optimization import get_scheduler
from diffusers.utils import logging
so "train_unconditional.py" fails:
`python3 train_unconditional.py --dataset="cifar10" --resolution=64 --output_path="cifar... | closed | completed | false | 3 | [] | [] | 2022-06-22T05:46:50Z | 2022-06-30T22:19:00Z | 2022-06-30T22:19:00Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | richardrl | 5,181,990 | MDQ6VXNlcjUxODE5OTA= | User | false |
huggingface/diffusers | 1,289,448,462 | I_kwDOHa8MBc5M22wO | 47 | https://github.com/huggingface/diffusers/issues/47 | https://api.github.com/repos/huggingface/diffusers/issues/47 | Glide pipeline generates wrong image dimensions | Hi,
Thank you very much for this amazing repository.
I was running the inference code for the glide pipeline, but the output is not of good dimension

This is the error... | closed | completed | false | 2 | [] | [] | 2022-06-30T00:56:04Z | 2022-06-30T23:14:39Z | 2022-06-30T23:14:39Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | xinmiaolin | 43,487,018 | MDQ6VXNlcjQzNDg3MDE4 | User | false |
huggingface/diffusers | 1,289,759,818 | I_kwDOHa8MBc5M4CxK | 50 | https://github.com/huggingface/diffusers/issues/50 | https://api.github.com/repos/huggingface/diffusers/issues/50 | No attribute 'LatentDiffusionPipeline' | **Error**: ` AttributeError: module 'diffusers' has no attribute 'LatentDiffusionPipeline'`
**On:**
```python
pipeline = DiffusionPipeline.from_pretrained("fusing/latent-diffusion-text2im-large")
```
This happened after the model files got successfully downloaded.
**Environment**:
- `python`: `3.10.5`
- ... | closed | completed | false | 2 | [] | [] | 2022-06-30T08:09:15Z | 2022-07-01T04:27:42Z | 2022-07-01T04:27:42Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | creatorrr | 931,887 | MDQ6VXNlcjkzMTg4Nw== | User | false |
huggingface/diffusers | 1,296,047,369 | I_kwDOHa8MBc5NQB0J | 82 | https://github.com/huggingface/diffusers/issues/82 | https://api.github.com/repos/huggingface/diffusers/issues/82 | latent_diffusion not found | Hi :)
I was trying to recreate the example of [text-to-image](https://github.com/milyiyo/diffusers/tree/main#text-to-image-generation-with-latent-diffusion) in Colab, but I am getting the following error:
`OSError: file /root/.cache/huggingface/hub/models--fusing--latent-diffusion-text2im-large/snapshots/d5eab561... | closed | completed | false | 1 | [] | [] | 2022-07-06T15:56:42Z | 2022-07-13T15:55:30Z | 2022-07-13T15:55:29Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | milyiyo | 8,120,990 | MDQ6VXNlcjgxMjA5OTA= | User | false |
huggingface/diffusers | 1,310,764,393 | I_kwDOHa8MBc5OIK1p | 107 | https://github.com/huggingface/diffusers/issues/107 | https://api.github.com/repos/huggingface/diffusers/issues/107 | [Feature request] Tensor to Image post-processing integrated with the library | For the image diffusers, the outputs are tensors that need to be pre-processed to become useful as images. Different models and schedulers may require different post-processing for the images that the user may not be aware about.
For that, the API for pipelines could have a `output_type` option that the user could c... | closed | completed | false | 1 | [] | [] | 2022-07-20T09:48:08Z | 2022-07-20T19:15:30Z | 2022-07-20T19:15:29Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | apolinario | 788,417 | MDQ6VXNlcjc4ODQxNw== | User | false |
huggingface/diffusers | 1,313,470,512 | I_kwDOHa8MBc5OSfgw | 123 | https://github.com/huggingface/diffusers/issues/123 | https://api.github.com/repos/huggingface/diffusers/issues/123 | Add an "About" to the repo | It would be nice to add an about section to this repo:
 | closed | completed | false | 3 | [] | [] | 2022-07-21T15:51:07Z | 2022-07-21T17:36:05Z | 2022-07-21T17:36:05Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | feconroses | 10,597,153 | MDQ6VXNlcjEwNTk3MTUz | User | false |
huggingface/diffusers | 1,272,010,652 | I_kwDOHa8MBc5L0Vec | 12 | https://github.com/huggingface/diffusers/issues/12 | https://api.github.com/repos/huggingface/diffusers/issues/12 | Collection of nitpicks | See below for a small collection of nitpicks; I suppose those will be adressed before the first release, but wanted to write them down somewhere:
- Documentation seems to be in a different format so will need to be refactored to work with the `doc-builder`
- The `logging` class still has mentions to `🤗 Transformers`... | closed | completed | false | 5 | [] | [] | 2022-06-15T10:21:24Z | 2022-07-21T18:54:29Z | 2022-07-21T18:54:29Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | LysandreJik | 30,755,778 | MDQ6VXNlcjMwNzU1Nzc4 | User | false |
huggingface/diffusers | 1,275,866,666 | I_kwDOHa8MBc5MDC4q | 24 | https://github.com/huggingface/diffusers/issues/24 | https://api.github.com/repos/huggingface/diffusers/issues/24 | Friction log from new user | Hey all! I'm writing a friction log as a new user and someone with 0 experience with diffusion models. I hope this is useful.
Overall, I **loved** that the README had a definition section, it was very quick to get things going and I was able to have some result with existing pipelines very quickly. As a first step I... | closed | completed | false | 4 | [] | [] | 2022-06-18T19:29:45Z | 2022-07-21T18:56:14Z | 2022-07-21T18:56:14Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | osanseviero | 7,246,357 | MDQ6VXNlcjcyNDYzNTc= | User | false |
huggingface/diffusers | 1,272,010,750 | I_kwDOHa8MBc5L0Vf- | 13 | https://github.com/huggingface/diffusers/issues/13 | https://api.github.com/repos/huggingface/diffusers/issues/13 | Common API | How much of a common API do you expect there to be across different objects? For example, the `unet.py` file contains a `Trainer`, while other models seem to only rely on their `forward` method, but they have different APIs and signatures.
Same with pipelines, for example with the `BDDM` pipeline having the followin... | closed | completed | false | 9 | [] | [] | 2022-06-15T10:21:27Z | 2022-07-21T19:02:41Z | 2022-07-21T19:02:41Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | LysandreJik | 30,755,778 | MDQ6VXNlcjMwNzU1Nzc4 | User | false |
huggingface/diffusers | 1,279,056,350 | I_kwDOHa8MBc5MPNne | 28 | https://github.com/huggingface/diffusers/issues/28 | https://api.github.com/repos/huggingface/diffusers/issues/28 | Support for imagen-pytorch? | Hi,
Curious if I could use this alongside the imagen-pytorch opensource model - https://github.com/lucidrains/imagen-pytorch
Any help with this would be great! | closed | completed | false | 3 | [] | [] | 2022-06-21T20:47:56Z | 2022-07-21T19:03:59Z | 2022-07-21T19:03:59Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | ghost | 10,137 | MDQ6VXNlcjEwMTM3 | User | false |
huggingface/diffusers | 1,282,809,908 | I_kwDOHa8MBc5MdiA0 | 32 | https://github.com/huggingface/diffusers/issues/32 | https://api.github.com/repos/huggingface/diffusers/issues/32 | cifar10 quality much worse than DDPM paper | Here are my cifar10 32x32 results, with 7x NVIDIA GeForce RTX 2080 Ti with 11GB VRAM trained for ~10 hours with:
` python3 -m torch.distributed.run --nproc_per_node 7 train_unconditional.py --dataset="cifar10" --resolution=32 --output_dir="cifar10-ddpm-" --batch_size=16 --num_epochs=100 --gradient_accumulation_... | closed | completed | false | 4 | [] | [
"anton-l"
] | 2022-06-23T18:52:40Z | 2022-07-21T19:04:25Z | 2022-07-21T19:04:25Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | richardrl | 5,181,990 | MDQ6VXNlcjUxODE5OTA= | User | false |
huggingface/diffusers | 1,289,751,315 | I_kwDOHa8MBc5M4AsT | 49 | https://github.com/huggingface/diffusers/issues/49 | https://api.github.com/repos/huggingface/diffusers/issues/49 | Missing schema: Invalid URL | Throwing `MissingSchema: Invalid URL` on trying to load a sample `DiffusionPipeline` from the huggingface hub. It does download the model files but fails right after. Maybe it's a problem with the model?
I tried to run:
```python
pipeline = DiffusionPipeline.from_pretrained("fusing/glide-base")
```
Error:
`... | closed | completed | false | 2 | [] | [] | 2022-06-30T08:01:42Z | 2022-07-21T19:05:47Z | 2022-07-21T19:05:47Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | creatorrr | 931,887 | MDQ6VXNlcjkzMTg4Nw== | User | false |
huggingface/diffusers | 1,292,414,167 | I_kwDOHa8MBc5NCKzX | 69 | https://github.com/huggingface/diffusers/issues/69 | https://api.github.com/repos/huggingface/diffusers/issues/69 | 1D Upsampler / Downsample | We should also write tests for 1D Upsampler and 1D downsampler layers (for `unet_rl.py`)
Once all layers are nicely consolidated and we have finished the first round of refactoring, up- and downsampling layers should probably be split into layers that have learnable parameters and those that don't.
cc @patil-sura... | closed | completed | false | 0 | [] | [
"patil-suraj"
] | 2022-07-03T20:33:32Z | 2022-07-21T19:05:57Z | 2022-07-21T19:05:57Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,272,010,527 | I_kwDOHa8MBc5L0Vcf | 11 | https://github.com/huggingface/diffusers/issues/11 | https://api.github.com/repos/huggingface/diffusers/issues/11 | Pros and cons of the configuration setup | Could you mention the reasons why you opted for a configuration setup that is different from transformers'?
From a previous conversation I remember it was in order to not repeat twice the arguments, however when looking at schedulers it seems like it is still the case:
https://github.com/huggingface/diffusers/blo... | closed | completed | false | 2 | [] | [] | 2022-06-15T10:21:20Z | 2022-07-21T19:08:25Z | 2022-07-21T19:08:25Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | LysandreJik | 30,755,778 | MDQ6VXNlcjMwNzU1Nzc4 | User | false |
huggingface/diffusers | 1,272,607,973 | I_kwDOHa8MBc5L2nTl | 14 | https://github.com/huggingface/diffusers/issues/14 | https://api.github.com/repos/huggingface/diffusers/issues/14 | Create Colab Notebook for training script | I have seen in the TO-DO list that you think to create a Colab to train the DM in examples folder.
I can do it! | closed | completed | false | 4 | [] | [] | 2022-06-15T18:47:37Z | 2022-07-21T19:18:37Z | 2022-07-21T19:02:58Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | mrm8488 | 3,653,789 | MDQ6VXNlcjM2NTM3ODk= | User | false |
huggingface/diffusers | 1,313,628,914 | I_kwDOHa8MBc5OTGLy | 124 | https://github.com/huggingface/diffusers/issues/124 | https://api.github.com/repos/huggingface/diffusers/issues/124 | [Documentation request] How to create a dataset for training | You do say [how to train a new model from a dataset](https://github.com/huggingface/diffusers/tree/main/examples). You don't say how to create a dataset.
Is it just a directory of images? Do they need to be sized somehow? Is there a subdirectory tree? Are there text files containing metadata? | closed | completed | false | 5 | [] | [
"anton-l"
] | 2022-07-21T18:14:50Z | 2022-07-21T19:45:01Z | 2022-07-21T19:45:01Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | StoneCypher | 77,482 | MDQ6VXNlcjc3NDgy | User | false |
huggingface/diffusers | 1,313,683,598 | I_kwDOHa8MBc5OTTiO | 125 | https://github.com/huggingface/diffusers/issues/125 | https://api.github.com/repos/huggingface/diffusers/issues/125 | Launch training with accelerate launch arg error | Launching training with `accelerate launch` raise argument errors
```
Traceback (most recent call last):
File "/usr/local/bin/accelerate-launch", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 690, in main
launch_command(args)
... | closed | completed | false | 3 | [] | [] | 2022-07-21T19:07:52Z | 2022-07-22T14:59:41Z | 2022-07-22T11:49:12Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | radames | 102,277 | MDQ6VXNlcjEwMjI3Nw== | User | false |
huggingface/diffusers | 1,318,638,450 | I_kwDOHa8MBc5OmNNy | 139 | https://github.com/huggingface/diffusers/issues/139 | https://api.github.com/repos/huggingface/diffusers/issues/139 | Shouldn't PNDMScheduler have an add_noise() method, too? | Maybe a naive question, but I was following the tutorial notebooks and was testing to exchange schedulers and noticed that it was missing there but is present in both DDIM and DDPM. | closed | completed | false | 1 | [] | [] | 2022-07-26T18:59:00Z | 2022-07-27T15:38:53Z | 2022-07-27T15:38:52Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Quasimondo | 182,098 | MDQ6VXNlcjE4MjA5OA== | User | false |
huggingface/diffusers | 1,306,491,593 | I_kwDOHa8MBc5N33rJ | 93 | https://github.com/huggingface/diffusers/issues/93 | https://api.github.com/repos/huggingface/diffusers/issues/93 | Some tests fail on CPU / M1 | For example, in debugging the test `test_modeling_utils.py::PipelineTesterMixin::test_score_sde_ve_pipeline`, we added a specific value for CPU, but the values on m1 are different slightly again. Here are the values from m1:
```
if model.device.type == "cpu":
expected_image_sum = 3384805888.0
expected_im... | closed | completed | false | 2 | [] | [] | 2022-07-15T20:52:20Z | 2022-08-03T10:49:46Z | 2022-08-03T10:49:45Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | natolambert | 10,695,622 | MDQ6VXNlcjEwNjk1NjIy | User | false |
huggingface/diffusers | 1,311,938,865 | I_kwDOHa8MBc5OMpkx | 114 | https://github.com/huggingface/diffusers/issues/114 | https://api.github.com/repos/huggingface/diffusers/issues/114 | Higher level pipeline | Just as in `transformers`, I was wondering if we have any plans for a general `pipeline` function that could use the different pipelines under the hood. | closed | completed | false | 1 | [] | [] | 2022-07-20T21:19:46Z | 2022-08-03T10:50:15Z | 2022-08-03T10:50:15Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | osanseviero | 7,246,357 | MDQ6VXNlcjcyNDYzNTc= | User | false |
huggingface/diffusers | 1,313,684,472 | I_kwDOHa8MBc5OTTv4 | 126 | https://github.com/huggingface/diffusers/issues/126 | https://api.github.com/repos/huggingface/diffusers/issues/126 | Add a `conda` install option for `diffusers` | It will be helpful to have `diffusers` added `conda-forge` channel and install with conda.
:point_right: I have started the work on it already.
- https://github.com/conda-forge/staged-recipes/pull/19751
Once the PR is merged, the library can be installed as:
```sh
conda install -c conda-forge diffusers
``... | closed | completed | false | 2 | [] | [] | 2022-07-21T19:08:41Z | 2022-08-03T14:46:26Z | 2022-08-03T14:46:26Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | sugatoray | 10,201,242 | MDQ6VXNlcjEwMjAxMjQy | User | false |
huggingface/diffusers | 1,323,706,466 | I_kwDOHa8MBc5O5ihi | 148 | https://github.com/huggingface/diffusers/issues/148 | https://api.github.com/repos/huggingface/diffusers/issues/148 | what's the paper of conditional unet ? | Hello.
Can you tell me the paper name in [condional_unet architecture](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_2d_condition.py) ?
I wonder what paper this model structure is based on.
What paper is this model used in? | closed | completed | false | 2 | [] | [] | 2022-08-01T02:20:02Z | 2022-08-04T02:02:52Z | 2022-08-04T02:02:52Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | taki0112 | 26,713,992 | MDQ6VXNlcjI2NzEzOTky | User | false |
huggingface/diffusers | 1,320,585,914 | I_kwDOHa8MBc5Otoq6 | 143 | https://github.com/huggingface/diffusers/issues/143 | https://api.github.com/repos/huggingface/diffusers/issues/143 | Running difussers with GPU | Running the example codes i see that the CPU and not the GPU is used, is there a way to use GPU instead | closed | completed | false | 4 | [
"question"
] | [] | 2022-07-28T08:34:12Z | 2022-08-15T17:27:31Z | 2022-08-15T17:27:31Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | jfdelgad | 36,968,968 | MDQ6VXNlcjM2OTY4OTY4 | User | false |
huggingface/diffusers | 1,314,016,109 | I_kwDOHa8MBc5OUktt | 128 | https://github.com/huggingface/diffusers/issues/128 | https://api.github.com/repos/huggingface/diffusers/issues/128 | how to conditional diffusion with two classes label | null | closed | completed | false | 2 | [] | [] | 2022-07-22T01:22:40Z | 2022-08-16T08:41:30Z | 2022-07-22T12:08:54Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Johnson-yue | 10,268,274 | MDQ6VXNlcjEwMjY4Mjc0 | User | false |
huggingface/diffusers | 1,340,471,634 | I_kwDOHa8MBc5P5flS | 189 | https://github.com/huggingface/diffusers/issues/189 | https://api.github.com/repos/huggingface/diffusers/issues/189 | Question about PR #185 | Is it possible to use the K-LMS scheduler using the stable diffusion snapshot loaded with `from_pretrained`?
Thanks~ | closed | completed | false | 3 | [] | [] | 2022-08-16T14:46:49Z | 2022-08-16T15:30:15Z | 2022-08-16T15:26:10Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | atarashansky | 16,548,075 | MDQ6VXNlcjE2NTQ4MDc1 | User | false |
huggingface/diffusers | 1,343,077,647 | I_kwDOHa8MBc5QDb0P | 211 | https://github.com/huggingface/diffusers/issues/211 | https://api.github.com/repos/huggingface/diffusers/issues/211 | Exception raised in `LDMTextToImagePipeline` | ### Describe the bug
Invoking a LDMTextToImagePipeline loaded from model `CompVis/ldm-text2im-large-256` results in an exception, in the current `main` branch.
I haven't checked the code yet, maybe I'm using the wrong model.
### Reproduction
```
from diffusers import LDMTextToImagePipeline
ldm = LDMTextTo... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-08-18T13:07:52Z | 2022-08-18T15:55:16Z | 2022-08-18T15:55:16Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pcuenca | 1,177,582 | MDQ6VXNlcjExNzc1ODI= | User | false |
huggingface/diffusers | 1,341,357,999 | I_kwDOHa8MBc5P83-v | 195 | https://github.com/huggingface/diffusers/issues/195 | https://api.github.com/repos/huggingface/diffusers/issues/195 | Implement `pipeline.to(device)` | Currently, pipeline modules are moved to the preferred compute device during `__call__`. This is reasonable, as they stay there as long as the user keeps passing the same `torch_device` across calls.
However, in multi-GPU model-serving scenarios, it could be useful to move each pipeline to a dedicated device during ... | closed | completed | false | 5 | [] | [
"pcuenca"
] | 2022-08-17T08:13:26Z | 2022-08-19T16:39:13Z | 2022-08-19T16:39:13Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pcuenca | 1,177,582 | MDQ6VXNlcjExNzc1ODI= | User | false |
huggingface/diffusers | 1,345,238,387 | I_kwDOHa8MBc5QLrVz | 222 | https://github.com/huggingface/diffusers/issues/222 | https://api.github.com/repos/huggingface/diffusers/issues/222 | Training not working because of RuntimeError | ### Describe the bug
Hi,
unfortunately, I could not run the training due to an error in the scheduler.
Below you will find the error log.
Best,
Tristan
### Reproduction
```
accelerate launch train_unconditional.py \
--dataset_name="huggan/flowers-102-categories" \
--resolution=64 \
--output_dir=... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-08-20T17:35:35Z | 2022-08-21T07:03:00Z | 2022-08-21T07:03:00Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | AI-Guru | 32,195,399 | MDQ6VXNlcjMyMTk1Mzk5 | User | false |
huggingface/diffusers | 1,345,057,211 | I_kwDOHa8MBc5QK_G7 | 221 | https://github.com/huggingface/diffusers/issues/221 | https://api.github.com/repos/huggingface/diffusers/issues/221 | Add safety check usage in the readme | It seems like a safety check is now required for stable diffusion. Could update the readme with a proper example on how to establish the pipeline? The current example is now outdated | closed | completed | false | 2 | [] | [] | 2022-08-20T05:01:48Z | 2022-08-22T20:09:07Z | 2022-08-22T20:09:07Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | dblunk88 | 39,381,389 | MDQ6VXNlcjM5MzgxMzg5 | User | false |
huggingface/diffusers | 1,346,071,403 | I_kwDOHa8MBc5QO2tr | 228 | https://github.com/huggingface/diffusers/issues/228 | https://api.github.com/repos/huggingface/diffusers/issues/228 | stable-diffusion-v1-4 link in release v0.2.3 is broken | ### Describe the bug
@anton-l the link (https://huggingface.co/CompVis/stable-diffusion-v1-4) in the [release v0.2.3](https://github.com/huggingface/diffusers/releases/tag/v0.2.3) returns a 404.
### Reproduction
_No response_
### Logs
_No response_
### System Info
```shell
N/A
```
| closed | completed | false | 12 | [
"question"
] | [] | 2022-08-22T09:07:27Z | 2022-08-22T20:53:00Z | 2022-08-22T19:21:18Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | leszekhanusz | 4,641,499 | MDQ6VXNlcjQ2NDE0OTk= | User | false |
huggingface/diffusers | 1,346,962,504 | I_kwDOHa8MBc5QSQRI | 232 | https://github.com/huggingface/diffusers/issues/232 | https://api.github.com/repos/huggingface/diffusers/issues/232 | Working offline once the models have been downloaded | I thought that once the models had been downloaded once, they would be cached and it would be possible to use it offline.
Using [this code](https://github.com/huggingface/diffusers/issues/228#issuecomment-1222813519), you need to have internet working at the beginning of the program.
Once it runs, internet is no... | closed | completed | false | 2 | [] | [] | 2022-08-22T20:44:07Z | 2022-08-22T21:26:37Z | 2022-08-22T21:26:37Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | leszekhanusz | 4,641,499 | MDQ6VXNlcjQ2NDE0OTk= | User | false |
huggingface/diffusers | 1,347,140,794 | I_kwDOHa8MBc5QS7y6 | 234 | https://github.com/huggingface/diffusers/issues/234 | https://api.github.com/repos/huggingface/diffusers/issues/234 | Stable Diffusion pipeline doesn't run with half-precision | ### Describe the bug
As of the 0.2.4 release, the StableDiffusion pipeline doesn't seem to work with the half-precision "fp16" weights and `torch_dtype=torch.float16`. I think it's due to [this line](https://github.com/huggingface/diffusers/blob/051b34635fda2fc310898a6a602c89be8663b77f/src/diffusers/models/embedding... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-08-23T00:01:55Z | 2022-08-23T03:08:38Z | 2022-08-23T03:08:37Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | singularperturbation | 2,097,138 | MDQ6VXNlcjIwOTcxMzg= | User | false |
huggingface/diffusers | 1,341,461,180 | I_kwDOHa8MBc5P9RK8 | 197 | https://github.com/huggingface/diffusers/issues/197 | https://api.github.com/repos/huggingface/diffusers/issues/197 | Resnet - Delete dead code | There is a lot of dead
code in the file: https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py which should be cleaned up, namely:
- Pretty much all code after: https://github.com/huggingface/diffusers/blob/80e0c8ba9ebd7b3ddd82f3e443715d4e7f08f2bb/src/diffusers/models/resnet.py#L389
- A... | closed | completed | false | 2 | [
"enhancement",
"good first issue"
] | [] | 2022-08-17T09:31:16Z | 2022-08-23T06:38:38Z | 2022-08-23T06:38:38Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,338,013,244 | I_kwDOHa8MBc5PwHY8 | 173 | https://github.com/huggingface/diffusers/issues/173 | https://api.github.com/repos/huggingface/diffusers/issues/173 | [Stable Diffusion] Longer prompt and rectangular image | Thanks for open-sourcing this great repo! I have been using this code with stable diffusion checkpoints. There are 2 key features that https://github.com/CompVis/stable-diffusion supports, but seem to be missing here:
* Generate rectangular images, which people showcase a lot on the internet.
* Currently the max to... | closed | completed | false | 13 | [
"enhancement"
] | [
"anton-l",
"patil-suraj"
] | 2022-08-13T17:20:46Z | 2022-08-23T12:37:06Z | 2022-08-23T12:37:06Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | DrJimFan | 3,018,029 | MDQ6VXNlcjMwMTgwMjk= | User | false |
huggingface/diffusers | 1,346,131,127 | I_kwDOHa8MBc5QPFS3 | 229 | https://github.com/huggingface/diffusers/issues/229 | https://api.github.com/repos/huggingface/diffusers/issues/229 | "Safety Module" will be used to *create* NSFW images | ### Describe the bug
You have added a "Safety Module" that returns black images for NSFW content.
https://github.com/huggingface/diffusers/commit/65ea7d6b628d9b4c0fedf59bb59e7e57c88a44ff
It is obvious that this classifier will be used for a different purpose. It is trivial to change the module so that Stable D... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-08-22T09:53:47Z | 2022-08-24T06:39:33Z | 2022-08-24T06:39:33Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | rolux | 152,646 | MDQ6VXNlcjE1MjY0Ng== | User | false |
huggingface/diffusers | 1,340,054,131 | I_kwDOHa8MBc5P35pz | 184 | https://github.com/huggingface/diffusers/issues/184 | https://api.github.com/repos/huggingface/diffusers/issues/184 | Split `tests_modeling_utils` | The function https://github.com/huggingface/diffusers/blob/main/tests/test_modeling_utils.py becomes too long which makes it a bit cumbersome to only test part of the code.
We should at least move all the pipeline tests into a new class and probably also also move the individual model testing classes, such as https... | closed | completed | false | 0 | [
"good first issue"
] | [] | 2022-08-16T09:16:40Z | 2022-08-24T11:27:17Z | 2022-08-24T11:27:17Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,343,834,339 | I_kwDOHa8MBc5QGUjj | 216 | https://github.com/huggingface/diffusers/issues/216 | https://api.github.com/repos/huggingface/diffusers/issues/216 | Porting `img2img.py` from SD into the diffusers library | The [image-to-image script](https://github.com/CompVis/stable-diffusion/blob/main/scripts/img2img.py) in stable-diffusion is a very nice tool for modifying images.
Their implementation seems relatively straightforward, though they have only implemented it for the DDIM scheduler. I took a crack at porting it over int... | closed | completed | false | 4 | [] | [
"anton-l"
] | 2022-08-19T02:00:53Z | 2022-08-24T11:39:53Z | 2022-08-24T11:39:52Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | atarashansky | 16,548,075 | MDQ6VXNlcjE2NTQ4MDc1 | User | false |
huggingface/diffusers | 1,350,666,902 | I_kwDOHa8MBc5QgYqW | 248 | https://github.com/huggingface/diffusers/issues/248 | https://api.github.com/repos/huggingface/diffusers/issues/248 | fix off by one in the mask pyramids | null | closed | completed | false | 0 | [] | [] | 2022-08-25T10:16:20Z | 2022-08-25T10:16:32Z | 2022-08-25T10:16:32Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | blefaudeux | 3,072,861 | MDQ6VXNlcjMwNzI4NjE= | User | false |
huggingface/diffusers | 1,350,060,851 | I_kwDOHa8MBc5QeEsz | 246 | https://github.com/huggingface/diffusers/issues/246 | https://api.github.com/repos/huggingface/diffusers/issues/246 | AttributeError: module transformers has no attribute FeatureExtractionMixin | ### Describe the bug
Getting the error
```
AttributeError: module transformers has no attribute FeatureExtractionMixin
```
when running the example script provided for StableDiffusio v1.3:
https://huggingface.co/CompVis/stable-diffusion-v1-3
### Reproduction
```python
# make sure you're logged in wit... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-08-24T21:51:15Z | 2022-08-25T13:14:29Z | 2022-08-25T13:14:28Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | loretoparisi | 163,333 | MDQ6VXNlcjE2MzMzMw== | User | false |
huggingface/diffusers | 1,342,874,583 | I_kwDOHa8MBc5QCqPX | 208 | https://github.com/huggingface/diffusers/issues/208 | https://api.github.com/repos/huggingface/diffusers/issues/208 | Pipeline: obtain per-image reproducibility seeds when generating multiple images | People are interested in the following workflow: generate a few images from a prompt, select the one you like and tweak the prompt to steer it towards your goal. There are many examples in Twitter and the Discord bot, see context section below.
I managed to replicate this workflow in a demo Space generating one imag... | closed | completed | false | 8 | [] | [] | 2022-08-18T10:08:24Z | 2022-08-25T15:33:41Z | 2022-08-25T15:33:41Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pcuenca | 1,177,582 | MDQ6VXNlcjExNzc1ODI= | User | false |
huggingface/diffusers | 1,341,480,686 | I_kwDOHa8MBc5P9V7u | 199 | https://github.com/huggingface/diffusers/issues/199 | https://api.github.com/repos/huggingface/diffusers/issues/199 | Attention - Delete dead code | The attention file: https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention.py also contains still quite some dead code that we should clean up.
This class is never used and should be deleted
https://github.com/huggingface/diffusers/blob/80e0c8ba9ebd7b3ddd82f3e443715d4e7f08f2bb/src/diffuse... | closed | completed | false | 1 | [
"enhancement",
"good first issue"
] | [] | 2022-08-17T09:43:48Z | 2022-08-25T15:55:24Z | 2022-08-25T15:54:49Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,353,133,472 | I_kwDOHa8MBc5Qpy2g | 262 | https://github.com/huggingface/diffusers/issues/262 | https://api.github.com/repos/huggingface/diffusers/issues/262 | Add support for external latent specification | https://colab.research.google.com/github/pcuenca/diffusers-examples/blob/main/notebooks/stable-diffusion-seeds.ipynb <- this notebook (linked in the README) makes it seem as if we can specify the latent externally, but looking at the code that doesn't seem to work.
Here is a [proposed tweak](https://gist.github.com/... | closed | completed | false | 2 | [] | [] | 2022-08-27T20:07:28Z | 2022-08-28T08:20:06Z | 2022-08-28T08:20:06Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | gordicaleksa | 29,271,842 | MDQ6VXNlcjI5MjcxODQy | User | false |
huggingface/diffusers | 1,337,900,056 | I_kwDOHa8MBc5PvrwY | 172 | https://github.com/huggingface/diffusers/issues/172 | https://api.github.com/repos/huggingface/diffusers/issues/172 | Add options to disable/hide progress bar | **Is your feature request related to a problem? Please describe.**
This is a minor thing, but I find the progress bar annoying when I run inference with pipeline successively.
See this screenshot for example.
<img width="754" src="https://user-images.githubusercontent.com/25161192/184474554-a20cd389-9d11-4a64-bb... | closed | completed | false | 7 | [
"good first issue"
] | [] | 2022-08-13T08:16:23Z | 2022-08-30T10:30:07Z | 2022-08-30T10:30:07Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | hysts | 25,161,192 | MDQ6VXNlcjI1MTYxMTky | User | false |
huggingface/diffusers | 1,352,447,683 | I_kwDOHa8MBc5QnLbD | 259 | https://github.com/huggingface/diffusers/issues/259 | https://api.github.com/repos/huggingface/diffusers/issues/259 | Fix progress bar in Stable Diffusion pipeline | ### Describe the bug
Generating images with StableDiffusionPipeline does not display the total number of iterations because of `tqdm` and `enumerate` being swapped in the [code](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L136).
This is a ... | closed | completed | false | 0 | [
"bug"
] | [] | 2022-08-26T15:54:45Z | 2022-08-30T10:30:07Z | 2022-08-30T10:30:07Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | neverix | 46,641,404 | MDQ6VXNlcjQ2NjQxNDA0 | User | false |
huggingface/diffusers | 1,354,848,964 | I_kwDOHa8MBc5QwVrE | 271 | https://github.com/huggingface/diffusers/issues/271 | https://api.github.com/repos/huggingface/diffusers/issues/271 | Samplers & Documentation | I am confused about how to properly implement the various samplers with the StableDiffusionPipeline. The default values output garbage. The only preset I could find is for LMS. It would be helpful to have documentation on-hand with how to properly implement them.
Additionally, more options would also be nice, speci... | closed | completed | false | 6 | [] | [] | 2022-08-29T20:41:00Z | 2022-08-30T21:07:19Z | 2022-08-30T21:07:19Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | dblunk88 | 39,381,389 | MDQ6VXNlcjM5MzgxMzg5 | User | false |
huggingface/diffusers | 1,336,288,646 | I_kwDOHa8MBc5PpiWG | 166 | https://github.com/huggingface/diffusers/issues/166 | https://api.github.com/repos/huggingface/diffusers/issues/166 | Frozen parameters in GaussianFourierProjection | Hi, just a beginner with diffusion models and have been using your implementations as reference. I have a question about [this class](https://github.com/huggingface/diffusers/blob/3a32b8c916beced18f721f1c95f9cbd6c4c4aacb/src/diffusers/models/embeddings.py#L94)
Why is `requires_grad` set to false in the weight parame... | closed | completed | false | 5 | [] | [] | 2022-08-11T17:51:08Z | 2022-08-31T08:10:30Z | 2022-08-31T08:10:30Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | vvvm23 | 44,398,246 | MDQ6VXNlcjQ0Mzk4MjQ2 | User | false |
huggingface/diffusers | 1,357,094,775 | I_kwDOHa8MBc5Q4593 | 290 | https://github.com/huggingface/diffusers/issues/290 | https://api.github.com/repos/huggingface/diffusers/issues/290 | Training examples missing | Hello, in the Readme file you mentioned that the training examples can be found in `examples/training` directory, but it seems that it is not there. Maybe because it is under developing but I am really looking forward to see it. Big hug to this love community! :) | closed | completed | false | 2 | [] | [] | 2022-08-31T09:54:23Z | 2022-08-31T16:34:56Z | 2022-08-31T16:34:56Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | henrydylan | 104,773,765 | U_kgDOBj64hQ | User | false |
huggingface/diffusers | 1,357,628,325 | I_kwDOHa8MBc5Q68Ol | 298 | https://github.com/huggingface/diffusers/issues/298 | https://api.github.com/repos/huggingface/diffusers/issues/298 | PNDM bug | ### Describe the bug
A PNDM bug got introduced in commit b64c5227595f5eed10f6ff3ac7953de0bb07ab2d. I get IndexErrors and a highly increased step count
### Reproduction
pipe.scheduler = PNDMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", num_train_timesteps=1000)
### Logs
_No response_
... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-08-31T17:11:06Z | 2022-08-31T17:28:22Z | 2022-08-31T17:27:50Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | dblunk88 | 39,381,389 | MDQ6VXNlcjM5MzgxMzg5 | User | false |
huggingface/diffusers | 1,357,718,737 | I_kwDOHa8MBc5Q7STR | 300 | https://github.com/huggingface/diffusers/issues/300 | https://api.github.com/repos/huggingface/diffusers/issues/300 | F401 quality warnings | Hello, I noticed your comment in the top `__init__.py` module:
> There's no way to ignore "F401 '...' imported but unused" warnings in this
module, but to preserve other warnings. So, don't check this module at all.
There is a way: it's to add the objects you want to export to the `__all__` variable. Flake8 won'... | closed | completed | false | 1 | [] | [] | 2022-08-31T18:43:55Z | 2022-09-01T12:56:26Z | 2022-09-01T12:56:26Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pawamoy | 3,999,221 | MDQ6VXNlcjM5OTkyMjE= | User | false |
huggingface/diffusers | 1,360,254,085 | I_kwDOHa8MBc5RE9SF | 332 | https://github.com/huggingface/diffusers/issues/332 | https://api.github.com/repos/huggingface/diffusers/issues/332 | how to export stable fusion to onnx? | how to export stable fusion to onnx? | closed | completed | false | 1 | [] | [] | 2022-09-02T14:12:29Z | 2022-09-02T14:42:58Z | 2022-09-02T14:42:57Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | luohao123 | 49,749,220 | MDQ6VXNlcjQ5NzQ5MjIw | User | false |
huggingface/diffusers | 1,360,794,497 | I_kwDOHa8MBc5RHBOB | 337 | https://github.com/huggingface/diffusers/issues/337 | https://api.github.com/repos/huggingface/diffusers/issues/337 | Problem with img2img & text guided inpainting | ### Describe the bug
When I try img2img & text guided inpainting,I got the same problems as follows. The text to image code works perfectly in the same environment.
### Reproduction
I git clone this repo and run the image_to_image.py as follows:
```python
from torch import autocast
import requests
import to... | closed | completed | false | 1 | [
"bug"
] | [] | 2022-09-03T08:17:23Z | 2022-09-03T08:39:01Z | 2022-09-03T08:39:01Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | KevinGoodman | 43,786,278 | MDQ6VXNlcjQzNzg2Mjc4 | User | false |
huggingface/diffusers | 1,357,496,137 | I_kwDOHa8MBc5Q6b9J | 295 | https://github.com/huggingface/diffusers/issues/295 | https://api.github.com/repos/huggingface/diffusers/issues/295 | Having "ImportError:" | I got this error
'''
ImportError: cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_'
'''
after installing diffusers, PyTorch, and transformers.
| closed | completed | false | 2 | [] | [] | 2022-08-31T15:19:52Z | 2022-09-03T10:09:09Z | 2022-09-03T10:08:51Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | AhmedUZaki | 79,209,221 | MDQ6VXNlcjc5MjA5MjIx | User | false |
huggingface/diffusers | 1,361,115,497 | I_kwDOHa8MBc5RIPlp | 351 | https://github.com/huggingface/diffusers/issues/351 | https://api.github.com/repos/huggingface/diffusers/issues/351 | The model is not loaded directly into `CUDA` | ### Describe the bug
In the [Getting started with Diffusers] https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/diffusers_intro.ipynb) notebook available in the README. The model is not automatically loaded into `CUDA` with :
```python
image_pipe = DDPMPipeline.from_pretrained("google... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-09-04T11:09:11Z | 2022-09-04T15:09:38Z | 2022-09-04T15:09:37Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Mustapha-AJEGHRIR | 66,799,406 | MDQ6VXNlcjY2Nzk5NDA2 | User | false |
huggingface/diffusers | 1,361,015,460 | I_kwDOHa8MBc5RH3Kk | 347 | https://github.com/huggingface/diffusers/issues/347 | https://api.github.com/repos/huggingface/diffusers/issues/347 | Unable to find a version that satisfies the requirement huggingface-hub to install diffusers | ### Describe the bug
while trying to setup development environment by using command(pip install -e ".[dev]") within diffusers cloned repro folder
I am getting ERROR: Could not find a version that satisfies the requirement huggingface-hub<1.0,>=0.8.1
I have tried downgrading default huggingface_hub = 0.4.1 to 0... | closed | completed | false | 6 | [
"bug"
] | [] | 2022-09-04T02:42:54Z | 2022-09-05T14:39:33Z | 2022-09-05T14:39:04Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | rashmimarganiatgithub | 24,475,962 | MDQ6VXNlcjI0NDc1OTYy | User | false |
huggingface/diffusers | 1,364,356,233 | I_kwDOHa8MBc5RUmyJ | 383 | https://github.com/huggingface/diffusers/issues/383 | https://api.github.com/repos/huggingface/diffusers/issues/383 | Question about: `ConfigMixin` vs `XYZConfig class` | I see that [ConfigMixin](https://github.com/huggingface/diffusers/blob/d799084a9a7d5196ae708da72b46dd8e84604194/src/diffusers/configuration_utils.py#L38) & [@register_to_config](https://github.com/huggingface/diffusers/blob/d799084a9a7d5196ae708da72b46dd8e84604194/src/diffusers/configuration_utils.py#L300) are used to ... | closed | completed | false | 2 | [] | [] | 2022-09-07T09:18:27Z | 2022-09-07T10:04:05Z | 2022-09-07T10:03:55Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | mishig25 | 11,827,707 | MDQ6VXNlcjExODI3NzA3 | User | false |
huggingface/diffusers | 1,364,164,290 | I_kwDOHa8MBc5RT37C | 381 | https://github.com/huggingface/diffusers/issues/381 | https://api.github.com/repos/huggingface/diffusers/issues/381 | Error in section `3. How to write your own inference pipeline with diffusers` of the notebook `diffusers/stable_diffusion.ipynb` | ### Describe the bug
Just open the notebook in colab, and you will get:
```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-27-912da26b456b>](https://localhost:8080/#) in <module>
1 #ima... | closed | completed | false | 3 | [
"bug"
] | [] | 2022-09-07T06:34:48Z | 2022-09-07T15:25:53Z | 2022-09-07T15:25:53Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pootow | 688,742 | MDQ6VXNlcjY4ODc0Mg== | User | false |
huggingface/diffusers | 1,363,934,121 | I_kwDOHa8MBc5RS_up | 378 | https://github.com/huggingface/diffusers/issues/378 | https://api.github.com/repos/huggingface/diffusers/issues/378 | Textual Inversion DiagonalGaussianDistribution | ### Describe the bug
When running `accelerate launch textual_inversion.py`
getting the following error:
```
Traceback (most recent call last):
File "textual_inversion.py", line 579, in <module>
main()
File "textual_inversion.py", line 501, in main
latents = vae.encode(batch["pixel_values"]).latent_d... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-09-07T00:13:11Z | 2022-09-07T16:12:58Z | 2022-09-07T16:12:58Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | AmanKishore | 10,477,380 | MDQ6VXNlcjEwNDc3Mzgw | User | false |
huggingface/diffusers | 1,362,542,535 | I_kwDOHa8MBc5RNr_H | 367 | https://github.com/huggingface/diffusers/issues/367 | https://api.github.com/repos/huggingface/diffusers/issues/367 | Make a Hugging Face "optimized" pipeline example | Currently, using Stable Diffusion with huggingface/diffusers often fails due to VRAM shortage, even when using a 16GB GPU, and even when trying to make fairly humble generations, like an image with a 16:9 aspect ratio (which is important for making videos).
[Basujinal's fork](https://github.com/basujindal/stable-dif... | closed | completed | false | 6 | [] | [] | 2022-09-05T23:31:40Z | 2022-09-07T18:40:00Z | 2022-09-07T18:40:00Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | exo-pla-net | 47,930,742 | MDQ6VXNlcjQ3OTMwNzQy | User | false |
huggingface/diffusers | 1,361,095,249 | I_kwDOHa8MBc5RIKpR | 350 | https://github.com/huggingface/diffusers/issues/350 | https://api.github.com/repos/huggingface/diffusers/issues/350 | Typical CUDA Memory usage for `UNet2DConditionModel` | Hi,
Thanks for this wonderful and easy-to-use repository. I would like to know the typical VRAM usage of `UNet2DConditionModel` if I use the default parameters for one forward and backward pass. I am using a batch size of 1 with mixed precision but I am still getting
```
*** RuntimeError: CUDA out of memory. Tried... | closed | completed | false | 5 | [] | [] | 2022-09-04T09:35:26Z | 2022-09-08T06:15:26Z | 2022-09-08T06:15:25Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | ovshake | 22,028,532 | MDQ6VXNlcjIyMDI4NTMy | User | false |
huggingface/diffusers | 1,357,017,577 | I_kwDOHa8MBc5Q4nHp | 287 | https://github.com/huggingface/diffusers/issues/287 | https://api.github.com/repos/huggingface/diffusers/issues/287 | [Community effort] Type Hints | **Is your feature request related to a problem? Please describe.**
Many important functions and classes are missing type hints
**Describe the solution you'd like**
It would be great if the following functions could have better type hints to understand what input is expected.
## Models
1. - [x] https://gi... | closed | completed | false | 21 | [
"good first issue"
] | [] | 2022-08-31T08:52:08Z | 2022-09-08T07:20:59Z | 2022-09-08T07:20:58Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | patrickvonplaten | 23,423,619 | MDQ6VXNlcjIzNDIzNjE5 | User | false |
huggingface/diffusers | 1,366,789,940 | I_kwDOHa8MBc5Rd480 | 431 | https://github.com/huggingface/diffusers/issues/431 | https://api.github.com/repos/huggingface/diffusers/issues/431 | AttributeError: 'AutoencoderKLOutput' object has no attribute 'sample' | ### Describe the bug
running notebook https://colab.research.google.com/github/patil-suraj/Notebooks/blob/master/image_2_image_using_diffusers.ipynb
when running this cell (after previously run all the preceding cell )
generator = torch.Generator(device=device).manual_seed(1024)
with autocast("cuda"):
imag... | closed | completed | false | 5 | [
"bug"
] | [] | 2022-09-08T18:16:13Z | 2022-09-08T19:53:33Z | 2022-09-08T19:29:25Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | nunezmatias | 88,870,315 | MDQ6VXNlcjg4ODcwMzE1 | User | false |
huggingface/diffusers | 1,366,053,650 | I_kwDOHa8MBc5RbFMS | 419 | https://github.com/huggingface/diffusers/issues/419 | https://api.github.com/repos/huggingface/diffusers/issues/419 | [Question] Maybe the sample code in Readme is outdated? | ## Desc
Maybe the sample code in Readme is outdated? (🤦♂️Or my operation is faulty. I copied and ran multiple examples directly, all with similar errors`AttributeError: 'dict' object has no attribute 'images'`.
## Env
**python** v3.10
**diffusers** v0.2.4
**huggingface-hub** v0.9.1
**transformers** v4.2... | closed | completed | false | 5 | [] | [] | 2022-09-08T10:58:43Z | 2022-09-08T23:30:41Z | 2022-09-08T23:30:41Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | QIN2DIM | 62,018,067 | MDQ6VXNlcjYyMDE4MDY3 | User | false |
huggingface/diffusers | 1,368,349,336 | I_kwDOHa8MBc5Rj1qY | 457 | https://github.com/huggingface/diffusers/issues/457 | https://api.github.com/repos/huggingface/diffusers/issues/457 | Strange blue artifacts when running on MPS | ### Describe the bug
When running SD on mps, pictures appears with strange blue artifacts.
They appear on any count of inference steps. I tried on 50 and on 100. Blue noise everywhere
... | closed | completed | false | 3 | [
"bug"
] | [] | 2022-09-09T21:33:38Z | 2022-09-10T05:56:11Z | 2022-09-09T22:04:27Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | abesmon | 16,459,467 | MDQ6VXNlcjE2NDU5NDY3 | User | false |
huggingface/diffusers | 1,368,332,386 | I_kwDOHa8MBc5Rjxhi | 455 | https://github.com/huggingface/diffusers/issues/455 | https://api.github.com/repos/huggingface/diffusers/issues/455 | `NotImplementedError` for `aten::index.Tensor` when using `mps` | ### Describe the bug
I tried to use `StableDiffusionPipeline` with the lately added support for M1 (`mps`) as described in this [tweet](https://twitter.com/pcuenq/status/1567927480253808647).
Despite having installed the latest (preview) nighly PyTorch Build via
`pip3 install --pre torch torchvision torchaudio --... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-09-09T21:08:35Z | 2022-09-10T08:17:37Z | 2022-09-10T08:17:36Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | fabianmax | 17,836,552 | MDQ6VXNlcjE3ODM2NTUy | User | false |
huggingface/diffusers | 1,368,561,245 | I_kwDOHa8MBc5RkpZd | 462 | https://github.com/huggingface/diffusers/issues/462 | https://api.github.com/repos/huggingface/diffusers/issues/462 | StableDiffusionImg2ImgPipeline broken in 0.3.0 release for Apple MPS | ### Describe the bug
Using StableDiffusionImg2ImgPipeline before the 0.3.0 release used to generate images correctly on Apple Silicon devices. Now, if you use StableDiffusionImg2ImgPipeline, all you get is a brown image.
I've copied and pasted the sample code from the docs (with a few minor modifications) and tried... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-09-10T09:15:39Z | 2022-09-11T12:04:33Z | 2022-09-11T12:04:32Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | FahimF | 181,110 | MDQ6VXNlcjE4MTExMA== | User | false |
huggingface/diffusers | 1,358,365,928 | I_kwDOHa8MBc5Q9wTo | 307 | https://github.com/huggingface/diffusers/issues/307 | https://api.github.com/repos/huggingface/diffusers/issues/307 | Merge Stable Diffusion pipelines into one | **Is your feature request related to a problem? Please describe.**
It would be nice to be able to use text2img & img2img & inpaint with the same instanced pipeline
**Describe the solution you'd like**
`pipe.generate(...)`
`pipe.image_to_image(...)`
`pipe.inpaint(...)`
**Describe alternatives you've considered... | closed | completed | false | 10 | [
"community-examples"
] | [] | 2022-09-01T07:11:54Z | 2022-09-12T12:28:26Z | 2022-09-01T11:47:44Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | python273 | 3,097,956 | MDQ6VXNlcjMwOTc5NTY= | User | false |
huggingface/diffusers | 1,369,058,207 | I_kwDOHa8MBc5Rmiuf | 470 | https://github.com/huggingface/diffusers/issues/470 | https://api.github.com/repos/huggingface/diffusers/issues/470 | Cannot install diffusers through PIP, conflicting dependencies | ### Describe the bug
pip install --upgrade diffusers
Collecting diffusers
Using cached diffusers-0.3.0-py3-none-any.whl (153 kB)
Collecting regex!=2019.12.17
Using cached regex-2022.9.11-cp37-cp37m-win32.whl (250 kB)
Collecting Pillow
Using cached Pillow-9.2.0-cp37-cp37m-win32.whl (2.8 MB)
Requirement alr... | closed | completed | false | 5 | [
"bug"
] | [] | 2022-09-11T20:42:55Z | 2022-09-12T12:40:58Z | 2022-09-12T12:40:47Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | trapbuilder2 | 15,017,349 | MDQ6VXNlcjE1MDE3MzQ5 | User | false |
huggingface/diffusers | 1,369,726,430 | I_kwDOHa8MBc5RpF3e | 477 | https://github.com/huggingface/diffusers/issues/477 | https://api.github.com/repos/huggingface/diffusers/issues/477 | off-by-one error in pndm scheduler | There appears to be an off-by-one error on this line:
https://github.com/huggingface/diffusers/blob/25a51b63ca75e1351069bee87a0fb3df5abb89c3/src/diffusers/schedulers/scheduling_pndm.py#L338
I got `IndexError: index 1000 is out of bounds for dimension 0 with size 1000`
Repro script:
```import torch
from diffuse... | closed | completed | false | 2 | [] | [] | 2022-09-12T11:29:22Z | 2022-09-12T19:41:58Z | 2022-09-12T19:41:58Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | rokbok | 113,351,946 | U_kgDOBsGdCg | User | false |
huggingface/diffusers | 1,370,496,494 | I_kwDOHa8MBc5RsB3u | 487 | https://github.com/huggingface/diffusers/issues/487 | https://api.github.com/repos/huggingface/diffusers/issues/487 | `StableDiffusionPipeline` does not work on M1 CPU | ### Describe the bug
When trying to run `StableDiffusionPipeline` locally on my M1 Mac (used CPU), I obtain torch type mismatch. Is it expected to be able to run the example on CPU?
### Reproduction
The example from `README.md`
```python
# make sure you're logged in with `huggingface-cli login`
from torch... | closed | completed | false | 3 | [
"bug"
] | [] | 2022-09-12T20:44:40Z | 2022-09-13T07:48:20Z | 2022-09-13T07:48:20Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | stancld | 46,073,029 | MDQ6VXNlcjQ2MDczMDI5 | User | false |
huggingface/diffusers | 1,361,673,427 | I_kwDOHa8MBc5RKXzT | 358 | https://github.com/huggingface/diffusers/issues/358 | https://api.github.com/repos/huggingface/diffusers/issues/358 | Apple MPS error in unet_2d_condition.py | ### Describe the bug
When you use an LMSDiscreteScheduler on an Apple Silicon machine, you'll get the following error:
Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead
The offending line is 134 in unet_2d_condition.py.
The current code is:
ti... | closed | completed | false | 14 | [
"bug"
] | [
"pcuenca"
] | 2022-09-05T09:42:51Z | 2022-09-13T09:23:22Z | 2022-09-13T09:23:22Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | FahimF | 181,110 | MDQ6VXNlcjE4MTExMA== | User | false |
huggingface/diffusers | 1,371,222,983 | I_kwDOHa8MBc5RuzPH | 497 | https://github.com/huggingface/diffusers/issues/497 | https://api.github.com/repos/huggingface/diffusers/issues/497 | Typo in StableDiffusionInpaintPipeline.disable_attention_slicing() method | ### Describe the bug
To enable/disable attention slicing, one need to use enable/disable_attention_slicing() method.
but in StableDiffusionInpaintPipeline class, there is misspelling in disable_attention_slicing() method.
`self.enable_attention_slice(None)` should be replaced as `self.enable_attention_slicing(No... | closed | completed | false | 1 | [
"bug"
] | [] | 2022-09-13T10:29:20Z | 2022-09-13T12:25:23Z | 2022-09-13T12:25:23Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | juno-hwang | 52,326,857 | MDQ6VXNlcjUyMzI2ODU3 | User | false |
huggingface/diffusers | 1,313,466,303 | I_kwDOHa8MBc5OSee_ | 122 | https://github.com/huggingface/diffusers/issues/122 | https://api.github.com/repos/huggingface/diffusers/issues/122 | raise the problem No module named 'exceptions' When train the model | Traceback (most recent call last):
File "scripts/train.py", line 1, in <module>
import diffuser.utils as utils
File "/mnt/d/RL/UCSC/diffuser/diffuser/utils/__init__.py", line 4, in <module>
from .setup import *
File "/mnt/d/RL/UCSC/diffuser/diffuser/utils/setup.py", line 6, in <module>
from tap ... | closed | completed | false | 6 | [] | [] | 2022-07-21T15:47:57Z | 2022-09-13T15:34:34Z | 2022-09-13T15:34:34Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Lynex-01 | 64,463,528 | MDQ6VXNlcjY0NDYzNTI4 | User | false |
huggingface/diffusers | 1,315,915,875 | I_kwDOHa8MBc5Ob0hj | 135 | https://github.com/huggingface/diffusers/issues/135 | https://api.github.com/repos/huggingface/diffusers/issues/135 | The model_card_template is not included in the library | Running the training colab fails when pushing to the Hub with
```
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/diffusers/utils/model_card_template.md'
```
Doing
```
!ls /usr/local/lib/python3.7/dist-packages/diffusers/utils/
```
gives
```
dummy_transfor... | closed | completed | false | 8 | [] | [] | 2022-07-24T14:02:15Z | 2022-09-13T15:35:28Z | 2022-09-13T15:35:27Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | osanseviero | 7,246,357 | MDQ6VXNlcjcyNDYzNTc= | User | false |
huggingface/diffusers | 1,318,080,087 | I_kwDOHa8MBc5OkE5X | 138 | https://github.com/huggingface/diffusers/issues/138 | https://api.github.com/repos/huggingface/diffusers/issues/138 | ImportError: LDMTextToImagePipeline requires the transformers library but it was not found in your environment. | Hi, Thanks for a fantastic model but when I am installing it on Colab, It throws the below error.
`ImportError:
LDMTextToImagePipeline requires the transformers library but it was not found in your environment. You can install it with pip.`
I have installed it via `!pip install diffusers transformers` and I am ... | closed | completed | false | 1 | [] | [] | 2022-07-26T11:07:56Z | 2022-09-13T15:35:34Z | 2022-09-13T15:35:34Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | skuma307 | 86,348,268 | MDQ6VXNlcjg2MzQ4MjY4 | User | false |
huggingface/diffusers | 1,321,045,168 | I_kwDOHa8MBc5OvYyw | 144 | https://github.com/huggingface/diffusers/issues/144 | https://api.github.com/repos/huggingface/diffusers/issues/144 | TensorFlow and Flax/Jax | Will this library be similar to transformers and include TensorFlow and Flax implementations at some point? | closed | completed | false | 2 | [
"enhancement"
] | [] | 2022-07-28T14:43:29Z | 2022-09-13T15:36:24Z | 2022-09-13T15:36:24Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | will-rice | 25,072,137 | MDQ6VXNlcjI1MDcyMTM3 | User | false |
huggingface/diffusers | 1,321,803,745 | I_kwDOHa8MBc5OyR_h | 145 | https://github.com/huggingface/diffusers/issues/145 | https://api.github.com/repos/huggingface/diffusers/issues/145 | Kindly simplify training our own dataset | Hello,
Please try to simplify training dataset of our own. It is taking lot of Time and it is difficult to train using current setup.
| closed | completed | false | 4 | [] | [
"anton-l"
] | 2022-07-29T06:09:18Z | 2022-09-13T15:37:55Z | 2022-09-13T15:37:55Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | NeethanShetty | 104,005,827 | U_kgDOBjMAww | User | false |
huggingface/diffusers | 1,323,987,304 | I_kwDOHa8MBc5O6nFo | 149 | https://github.com/huggingface/diffusers/issues/149 | https://api.github.com/repos/huggingface/diffusers/issues/149 | Functionality of `use_conv` | Hello
[L312](https://github.com/huggingface/diffusers/blob/cde0ed162a127b17f1b4d4b16ff7f736cf04e690/src/diffusers/models/resnet.py#L312) in `use_conv=False` is it correct ?
if correct, then this line is same to [`fir=='sde_vp'`](https://github.com/huggingface/diffusers/blob/cde0ed162a127b17f1b4d4b16ff7f736cf04e69... | closed | completed | false | 2 | [] | [] | 2022-08-01T07:53:44Z | 2022-09-13T15:41:11Z | 2022-09-13T15:41:11Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | taki0112 | 26,713,992 | MDQ6VXNlcjI2NzEzOTky | User | false |
huggingface/diffusers | 1,326,285,001 | I_kwDOHa8MBc5PDYDJ | 150 | https://github.com/huggingface/diffusers/issues/150 | https://api.github.com/repos/huggingface/diffusers/issues/150 | Reading model from a local file | Greetings.
Consider I have a `model.ckpt` file, and it's trained and saved on my local computer. It's not hosted on huggingface and let's consider it's a little bit confidential and cannot be hosted anywhere. How can I feed it into `from_pretrained()` function? | closed | completed | false | 4 | [] | [] | 2022-08-02T19:08:13Z | 2022-09-13T15:42:07Z | 2022-09-13T15:42:06Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | prp-e | 1,078,404 | MDQ6VXNlcjEwNzg0MDQ= | User | false |
huggingface/diffusers | 1,326,405,143 | I_kwDOHa8MBc5PD1YX | 151 | https://github.com/huggingface/diffusers/issues/151 | https://api.github.com/repos/huggingface/diffusers/issues/151 | Asychronous multiple GPU multiple model training with shared replay buffer | Let's say we have multiple diffusion models, as in the Cascading diffusion model paper.
Is there an easy way to setup training such that each conditional model is trained simultaneously on different GPUs? What about with a shared replay buffer, that each conditional model can access? | closed | completed | false | 2 | [] | [] | 2022-08-02T21:12:12Z | 2022-09-13T15:43:08Z | 2022-09-13T15:43:08Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | richardrl | 5,181,990 | MDQ6VXNlcjUxODE5OTA= | User | false |
huggingface/diffusers | 1,338,101,387 | I_kwDOHa8MBc5Pwc6L | 174 | https://github.com/huggingface/diffusers/issues/174 | https://api.github.com/repos/huggingface/diffusers/issues/174 | Trying to train images from a local folder fails | ### Describe the bug
Following this section of the diffuser's training example:
```
# Or just load images from a local folder!
config.dataset = "imagefolder"
dataset = load_dataset(config.dataset, data_dir="path/to/folder")
```
Fails with repeated errors while trying to load the dataset:
```
OSError: [WinErr... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-08-14T01:04:55Z | 2022-09-13T15:43:35Z | 2022-09-13T15:43:35Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | sam598 | 10,446,449 | MDQ6VXNlcjEwNDQ2NDQ5 | User | false |
huggingface/diffusers | 1,341,326,907 | I_kwDOHa8MBc5P8wY7 | 193 | https://github.com/huggingface/diffusers/issues/193 | https://api.github.com/repos/huggingface/diffusers/issues/193 | Pipeline error | ### Describe the bug
I am copying some code from Patrick but I keep getting errors, here I copy
```python
from diffusers import StableDiffusionPipeline
# make sure you're logged in with `huggingface-cli login`
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-3-diffusers", use_auth... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-08-17T07:44:41Z | 2022-09-13T15:52:22Z | 2022-09-13T15:52:22Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Jpbonino | 81,916,559 | MDQ6VXNlcjgxOTE2NTU5 | User | false |
huggingface/diffusers | 1,347,095,939 | I_kwDOHa8MBc5QSw2D | 233 | https://github.com/huggingface/diffusers/issues/233 | https://api.github.com/repos/huggingface/diffusers/issues/233 | How do you verify that integration is equivalent to original Stable Diffusion? | Hi there HF folks!
Potentially silly question, but I went through the [commit history](https://github.com/huggingface/diffusers/commits/71ba8aec55b52a7ba5a1ff1db1265ffdd3c65ea2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py) behind the stable diffusion integration and I'm wondering: how do you... | closed | completed | false | 7 | [] | [] | 2022-08-22T23:04:35Z | 2022-09-13T15:54:38Z | 2022-09-13T15:54:38Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | gordicaleksa | 29,271,842 | MDQ6VXNlcjI5MjcxODQy | User | false |
huggingface/diffusers | 1,347,192,279 | I_kwDOHa8MBc5QTIXX | 235 | https://github.com/huggingface/diffusers/issues/235 | https://api.github.com/repos/huggingface/diffusers/issues/235 | trouble with cuda when porting colab script to standalone python | ### Describe the bug
I'm trying to write a minimal standalone python script based from the colab code.
After correctly installing all packages and setting up my huggingface token it fails upon run time. Pretty sure I haven't left anything out and the exact same code verbatim runs in colab concurrently.
### Reproduc... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-08-23T01:28:26Z | 2022-09-13T15:54:53Z | 2022-09-13T15:54:53Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | TheOneTrueGuy | 3,240,071 | MDQ6VXNlcjMyNDAwNzE= | User | false |
huggingface/diffusers | 1,349,412,333 | I_kwDOHa8MBc5QbmXt | 244 | https://github.com/huggingface/diffusers/issues/244 | https://api.github.com/repos/huggingface/diffusers/issues/244 | Add information for contributors on how to apply code formatter | **Is your feature request related to a problem? Please describe.**
I don't know how we are supposed to apply code formatters. I found settings for `black`, `isort` and `flake8` in `pyproject.toml` and `setup.cfg`, but it doesn't seem to be used. When I apply `isort` to the `main` branch, it changes codes. I think co... | closed | completed | false | 4 | [] | [
"anton-l"
] | 2022-08-24T13:01:42Z | 2022-09-13T15:55:41Z | 2022-09-13T15:55:40Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | hysts | 25,161,192 | MDQ6VXNlcjI1MTYxMTky | User | false |
huggingface/diffusers | 1,351,013,068 | I_kwDOHa8MBc5QhtLM | 251 | https://github.com/huggingface/diffusers/issues/251 | https://api.github.com/repos/huggingface/diffusers/issues/251 | Extreme fragility in latents distribution (solid color image results) | ### Describe the bug
To reproduce, one can replace lines 102-106 of [stable diffusers pipeline](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py) with a tensor of non-noise data.
More succinctly, this works as expected (hard coding the defaults... | closed | completed | false | 2 | [
"bug"
] | [] | 2022-08-25T14:42:07Z | 2022-09-13T15:55:58Z | 2022-09-13T15:55:57Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | rseger | 2,055,031 | MDQ6VXNlcjIwNTUwMzE= | User | false |
huggingface/diffusers | 1,353,555,144 | I_kwDOHa8MBc5QrZzI | 267 | https://github.com/huggingface/diffusers/issues/267 | https://api.github.com/repos/huggingface/diffusers/issues/267 | Non-squared Image shape | Is it possible to use diffusers on non-squared images?
That would be a very interesting feature! | closed | completed | false | 4 | [
"question"
] | [] | 2022-08-29T01:29:33Z | 2022-09-13T15:57:36Z | 2022-09-13T15:57:36Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | LucasSilvaFerreira | 5,742,873 | MDQ6VXNlcjU3NDI4NzM= | User | false |
huggingface/diffusers | 1,338,299,356 | I_kwDOHa8MBc5PxNPc | 180 | https://github.com/huggingface/diffusers/issues/180 | https://api.github.com/repos/huggingface/diffusers/issues/180 | `AutoencoderKL.encode` returns diagonal Gaussian instead of hidden states | This is mostly a question.
I find it a little weird that the output of `encode` in `AutoencoderKL` is the diagonal Gaussian distribution from which the hidden states are obtained, instead of the hidden states themselves: https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/vae.py#L436. Instead, th... | closed | completed | false | 1 | [] | [] | 2022-08-14T16:57:15Z | 2022-09-13T16:01:14Z | 2022-09-13T16:01:14Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | pcuenca | 1,177,582 | MDQ6VXNlcjExNzc1ODI= | User | false |
huggingface/diffusers | 1,353,296,551 | I_kwDOHa8MBc5Qqaqn | 263 | https://github.com/huggingface/diffusers/issues/263 | https://api.github.com/repos/huggingface/diffusers/issues/263 | `DDIMScheduler` does not work unless `set_timesteps` is used | ### Describe the bug
Need to set number of inference steps since "None" is default. Expected to have a default value.
Adding a very simple PR.
### Reproduction
```
scheduler = DDIMScheduler(
beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear"
)
# skipping this step will... | closed | completed | false | 6 | [
"bug"
] | [] | 2022-08-28T09:23:09Z | 2022-09-13T16:04:31Z | 2022-09-13T16:04:31Z | CONTRIBUTOR | null | 20260407T133413Z | 2026-04-07T13:34:13Z | samedii | 1,872,050 | MDQ6VXNlcjE4NzIwNTA= | User | false |
huggingface/diffusers | 1,364,513,722 | I_kwDOHa8MBc5RVNO6 | 389 | https://github.com/huggingface/diffusers/issues/389 | https://api.github.com/repos/huggingface/diffusers/issues/389 | Code in readme seems to be broken | ### Describe the bug
Several sample code units provided in README.md are broken:
**1. Example of image generation**
This line does not work:
`image = pipe(prompt).images[0]`
Instead I used:
`image = pipe(prompt)["sample"][0] ` after reading the [blog](https://huggingface.co/blog/stable_diffusion)
**2. Exa... | closed | completed | false | 4 | [
"bug"
] | [] | 2022-09-07T11:22:06Z | 2022-09-13T16:08:48Z | 2022-09-13T16:08:48Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | AndreyRub | 10,506,299 | MDQ6VXNlcjEwNTA2Mjk5 | User | false |
huggingface/diffusers | 1,366,985,616 | I_kwDOHa8MBc5ReouQ | 435 | https://github.com/huggingface/diffusers/issues/435 | https://api.github.com/repos/huggingface/diffusers/issues/435 | Textual inversion training notebook, 'AutoencoderKLOutput' object has no attribute 'sample' | ### Describe the bug
Been getting this error  was working last night... I've tried restarting/refreshing/New notebook, etc no luck. How do I fix this? thanks!
### Reproduction
_No resp... | closed | completed | false | 3 | [
"bug"
] | [] | 2022-09-08T21:03:02Z | 2022-09-13T16:10:17Z | 2022-09-13T16:10:17Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | crypticsymmetry | 29,524,706 | MDQ6VXNlcjI5NTI0NzA2 | User | false |
huggingface/diffusers | 1,348,051,555 | I_kwDOHa8MBc5QWaJj | 239 | https://github.com/huggingface/diffusers/issues/239 | https://api.github.com/repos/huggingface/diffusers/issues/239 | indices should be either on cpu or on the same device as the indexed tensor (cpu) | ### Describe the bug
image_to_image.py line 92 throws the error above.
` init_latents = self.scheduler.add_noise(init_latents, noise, timesteps)`
I've tried adding .to(self.device) to the 3 parameters.
Device should be 'cuda' though.
### Reproduction
```
device = "cuda"
pipei2i = StableDiff... | closed | completed | false | 21 | [
"bug"
] | [] | 2022-08-23T14:28:10Z | 2022-09-13T16:15:44Z | 2022-09-13T16:15:44Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Vortitron | 8,288,276 | MDQ6VXNlcjgyODgyNzY= | User | false |
huggingface/diffusers | 1,338,146,814 | I_kwDOHa8MBc5Pwn_- | 177 | https://github.com/huggingface/diffusers/issues/177 | https://api.github.com/repos/huggingface/diffusers/issues/177 | Add documentation for `subfolder` argument to `ModelMixin.from_pretrained` | **Is your feature request related to a problem? Please describe.**
The `ModelMixin.from_pretrained` has a keyword argument `subfolder`, but it's not documented in its docstring and it's hard for newcomers to know how to load models from HF Model Hub in case the model is saved with pipeline.
For example, when a DD... | closed | completed | false | 2 | [] | [] | 2022-08-14T06:16:47Z | 2022-09-13T17:18:03Z | 2022-09-13T17:18:03Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | hysts | 25,161,192 | MDQ6VXNlcjI1MTYxMTky | User | false |
huggingface/diffusers | 1,370,800,458 | I_kwDOHa8MBc5RtMFK | 490 | https://github.com/huggingface/diffusers/issues/490 | https://api.github.com/repos/huggingface/diffusers/issues/490 | Memory Issues: Compvis/Stable-Diffusion works, diffusers does not | ### Describe the bug
Hi, I've been able to run the stable diffusion scripts from [https://github.com/CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion) perfectly fine.
However, the [basic text to image example given on the readme of the diffusers page ](https://github.com/huggingface/diffusers/blo... | closed | completed | false | 4 | [
"bug"
] | [
"patrickvonplaten"
] | 2022-09-13T03:31:11Z | 2022-09-13T22:35:43Z | 2022-09-13T22:06:49Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | PhilippeNguyen | 7,034,878 | MDQ6VXNlcjcwMzQ4Nzg= | User | false |
huggingface/diffusers | 1,365,323,040 | I_kwDOHa8MBc5RYS0g | 410 | https://github.com/huggingface/diffusers/issues/410 | https://api.github.com/repos/huggingface/diffusers/issues/410 | Unet model only supports internal block channel sizes in multiples of 32 | **What API design would you like to have changed or added to the library? Why?**
I see that the current unet model breaks if `block_out_channels` is set to something other than a multiple of 32. I am just curious if this was on purpose? I would actually like to use a size smaller than 32. I tested this by changing t... | closed | completed | false | 2 | [] | [] | 2022-09-08T00:04:13Z | 2022-09-15T14:35:16Z | 2022-09-15T14:35:16Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | ezhang7423 | 54,998,055 | MDQ6VXNlcjU0OTk4MDU1 | User | false |
huggingface/diffusers | 1,359,915,048 | I_kwDOHa8MBc5RDqgo | 329 | https://github.com/huggingface/diffusers/issues/329 | https://api.github.com/repos/huggingface/diffusers/issues/329 | Support K-LMS for inpainting and img2img for stable diffusion | When it was in reference, it supported img2img, but now it doesn't.
| closed | completed | false | 3 | [] | [] | 2022-09-02T09:06:55Z | 2022-09-15T15:40:00Z | 2022-09-03T10:20:00Z | NONE | null | 20260407T133413Z | 2026-04-07T13:34:13Z | Inkorak | 52,286,717 | MDQ6VXNlcjUyMjg2NzE3 | User | false |
huggingface/diffusers | 1,370,054,349 | I_kwDOHa8MBc5RqV7N | 482 | https://github.com/huggingface/diffusers/issues/482 | https://api.github.com/repos/huggingface/diffusers/issues/482 | Some methods mix the usage of numpy and torch | ### Describe the bug
Here are what I find in `resnet.py` (not checking other files at this moment).
Goal: replace this with pure torch methods
- [FirUpsample2D._upsample_2d](https://github.com/huggingface/diffusers/blob/f4781a0b27ffb3ea61ecd25b0b87305e0960304e/src/diffusers/models/resnet.py#L137)
- [FirDownsa... | closed | completed | false | 1 | [
"bug"
] | [] | 2022-09-12T14:58:32Z | 2022-09-16T13:15:06Z | 2022-09-16T13:15:06Z | MEMBER | null | 20260407T133413Z | 2026-04-07T13:34:13Z | ydshieh | 2,521,628 | MDQ6VXNlcjI1MjE2Mjg= | User | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.