Questions tagged [stable-diffusion]

Stable Diffusion is an AI art engine created by Stability AI. Popularly used in installations such as Automatic1111 webgui (https://github.com/AUTOMATIC1111/stable-diffusion-webui) and others. This tag covers problems with the engine and installations that bundle other interfaces, as well as prompt crafting and workflows for all functions that Stable Diffusion supports. Training, image to image, etc.

210 questions
5
votes
0 answers

ModuleNotFoundError: No module named 'torch' when installing xformers for Stable Diffusion on Macbook M2 Max

I'm working on Stable Diffusion and try to install xformers to train my Lora. My Computer is Macbook M2 Max and already installed latest python3.11 and pip 23.1.2 which…
HowardC
  • 51
  • 5
4
votes
1 answer

Diffusers SDXL "TypeError: argument of type 'NoneType' is not iterable"

Just got access to SDXL model, looking to test it for its upcoming release... Unfortunately, the code we currently use for our service seems to not work with stabilityai/stable-diffusion-xl-base-0.9, and I'm not entirely sure what is different with…
kamza
  • 75
  • 5
4
votes
1 answer

"TypeError: getattr(): attribute name must be string" in PyTorch diffusers, how to fix it?

I am trying the diffusers of Pytorch to generate pictures in my Mac M1. I have a simple syntax like this: modelid = "CompVis/stable-diffusion-v1-4" device = "cuda" pipe = StableDiffusionPipeline.from_pretrained(modelid, revision="fp16",…
yts61
  • 1,142
  • 2
  • 20
  • 33
4
votes
1 answer

Obtaining the image iterations before final image has been generated StableDiffusionPipeline.pretrained

I am currently using the diffusers StableDiffusionPipeline (from hugging face) to generate AI images with a discord bot which I use with my friends. I was wondering if it was possible to get a preview of the image being generated before it is…
jaal kamza
  • 213
  • 4
  • 12
3
votes
1 answer

torch firing wrong forward_hook

I am trying to modify the HF UNet's for diffusion models. I'm doing this by adding conditions during the down and up blocks. This is a minimal example of the problem. It seems the last down_block is firing before the first one. Nothing in the UNet…
sachinruk
  • 9,571
  • 12
  • 55
  • 86
3
votes
3 answers

Stable Diffusion Error: Couldn't install torch / No matching distribution found for torch==1.12.1+cu113

I am trying to install locally Stable Diffusion. I follow the presented steps but when I get to the last one "run webui-use file" it opens the terminal and it's saying "Press any key to continue...". If I do so the terminal instantly closes. I went…
Oliver
  • 177
  • 1
  • 10
3
votes
4 answers

How to create AI Images (Midjourney) by code?

I want to create an app that creates Midjourney images. The problem is that Midjourney doesn't provide an API, it works from Discord. How to automate the process of image generation without the need to open Discord?
Ehab
  • 566
  • 6
  • 24
3
votes
1 answer

How to use diffusers with custom ckpt file

Currently I have the current code which runs a prompt on a model which it downloads from huggingface. from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler model_id = "stabilityai/stable-diffusion-2" # Use the Euler scheduler here…
Mohammad Razeghi
  • 1,574
  • 2
  • 14
  • 33
3
votes
3 answers

Why does StableDiffusionPipeline return black images when generating multiple images at once?

I am using the StableDiffusionPipeline from the Hugging Face Diffusers library in Python 3.10.2, on an M2 Mac (I tagged it because this might be the issue). When I try to generate 1 image from 1 prompt, the output looks fine, but when I try to…
2
votes
0 answers

CUDA out of memory on automatic1111 Stable Diffusion

I'm running into an issue while running Stable Diffusion web UI AUTOMATIC1111. I have an RTX 2060 6GB, and I'm running into this issue. OutOfMemoryError: CUDA out of memory. Tried to allocate 1.50 GiB (GPU 0; 5.77 GiB total capacity; 3.34 GiB…
2
votes
1 answer

Look for good ways to prepare customized dataset for training controlnet with huggingface diffusers

I want to personally train the controlnet, but I find it inconvenient to prepare the datasets. As I follow the huggingface tutorial available at this link: https://huggingface.co/blog/train-your-controlnet, I believe I should organize the dataset in…
Yun
  • 21
  • 2
2
votes
0 answers

How to inpaint using the stable diffusion webui api?

i am asking how to inpaint using the stable diffusion webui api. I am currently searching for a python source where i select an mask image and an prompt anf the the masked content is beeing filled with the prompt. But how to do this with Stable…
2
votes
1 answer

Stable Diffusion Webui ConnectTimeoutError while starting

I'm trying to set up stable diffusion on a server so that users can access it via RDP and generate what they need. The server in place I hosted on-premise and doesn't have any internet connection. I installed all needed libs via whl files. I was…
Sacul0815
  • 21
  • 2
2
votes
0 answers

Expected attn_mask dtype to be bool or to match query dtype, but got attn_mask.dtype: float and query.dtype: c10::BFloat16 instead

I want to install "Stable Diffusion" on a paperspace virtual machine (OS: Ubuntu) I have customized the installation to use "xformers". Creation of the ldm environment (via the "environment.yaml" file): name: ldm channels: - pytorch -…
rhJura
  • 21
  • 3
2
votes
6 answers

I Run stable diffusion,It`s wrong RuntimeError: "LayerNormKernelImpl" not implemented for 'Half',

I Run stable diffusion,It`s wrong RuntimeError: "LayerNormKernelImpl" not implemented for 'Half',help me,how i do? I have no idea for it
吾发克
  • 31
  • 1
  • 1
  • 2
1
2 3
13 14