-
Notifications
You must be signed in to change notification settings - Fork 157
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: stable diffusion example failed to run #1165
Comments
I'm not able to reproduce this error on Linux. I guess it's related to the disk space. Can you check if Docker Desktop (or something else you're using) has enough disk spaces? |
Awesome, i found the storage resource limit of docker is 120 GB , and now 119.8 GB used. Does we need pre check the resource? @kemingy |
Yeah, we can do that and make the error message more friendly. |
@gaocegege |
Could you please show the err log? |
I have fixed it via this doc, need change I just tested in T4 cuda env, must use fp16 mode, here is my env and code:
import random
import sys
import os
from diffusers import StableDiffusionPipeline
import torch
from torch import autocast
def dummy(images, **kwargs):
return images, False
# Read prompt from command line
prompt = " ".join(sys.argv[1:])
model_id="CompVis/stable-diffusion-v1-4"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16", use_auth_token=os.environ['HUGGINGFACE_TOKEN'])
pipe.to("cuda")
pipe.safety_checker = dummy
# Run for 10 samples
for i in range(10):
n = random.randint(1000, 9999)
with autocast("cuda"):
image = pipe(prompt, guidance_scale=7.5).images[0]
image.save(f'{n}.jpeg')
if i==9:
exit(0) |
SGTM. The API is updated. Let's update https://github.com/tensorchord/envd-docs/blob/main/docs-zh/blog/stable-diffusion-cpu.md |
Could you please help us fix the example? https://github.com/tensorchord/envd/blob/main/examples/stable-diffusion/main.py#L26 |
The blog post is already updated. |
I will fix it. |
Description
I have try this demo , but looks like some image is not found.
envd file:
The detail log :
Reproduction
I jsut follow this demo , blocking in
envd up
.Additional Info
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: