-
Notifications
You must be signed in to change notification settings - Fork 6k
StableDiffusionXLPipeline.from_single_file Error #7389
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
Comments
sorry I can't reproduce this, this runs for me the config file is https://raw.githubusercontent.com/Stability-AI/generative-models/main/configs/inference/sd_xl_base.yaml from diffusers import StableDiffusionXLPipeline
import torch
repo_id = "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0.safetensors"
pipe = StableDiffusionXLPipeline.from_single_file(repo_id,
original_config_file='sd_xl_base.yaml',
torch_dtype=torch.float16,
local_files_only=True,
use_safetensors=True,
add_watermarker=False,
)
pipe.enable_model_cpu_offload()
prompt = "black denim,long jeans,1girl,datou,"
negative_prompt = '(worst quality:2.1),(low quality:2.1),(normal quality:2.1)'
# sdxl
image1 = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=50,
eta=1.0,
).images[0]
image1.save("yiyi_test_out.png") |
what's your version? 0.26.3 is OK, but 0.27.0/0.27.1/0.27.2 occur error |
Have you solved the problem? |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
closing now since we are not able to reproduce on our end |
I am able to reproduce it with the following minimal code: from diffusers import StableDiffusionXLPipeline pipeline = StableDiffusionXLPipeline.from_single_file( image = pipeline(prompt="photo").images[0] The venv is I am NOT getting this error with a fresh venv installed with the most recent versions available to pip. |
Describe the bug
version: 0.27.0, 0.27.1
when use StableDiffusionXLPipeline.from_single_file,error occur:
but version 0.26.3 is OK
Reproduction
Logs
No response
System Info
diffuser 0.27.0 0.27.1
Who can help?
No response
The text was updated successfully, but these errors were encountered: