-
Notifications
You must be signed in to change notification settings - Fork 32
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
Diffusers 0.26.3 #25
Comments
Hi @elismasilva, I tested DeepCache under diffusers==0.26.3 and it works well. Can you give me the code snippet that can reproduce the bug/error? |
When i try import pipeline: from DeepCache.sdxl.pipeline_stable_diffusion_xl import StableDiffusionXLPipeline as DeepCacheStableDiffusionXLPipeline i got error:
I tried to fix this by looking at the original pipeline, I managed to fix the PositionNet one but then more and more errors started appearing so I found that your pipeline is very different from the original, for example it is not prepared for batch process if I don't use the textencoder it It's a problem too. I managed to make it work just with DeepCacheSDHelper using the pipeline. By the way, does this class have the same result as the implemented pipeline?: This is my code, the line that causes the problem is commented out: import torch
from diffusers import StableDiffusionXLPipeline
#from DeepCache.sdxl.pipeline_stable_diffusion_xl import StableDiffusionXLPipeline as DeepCacheStableDiffusionXLPipeline
queue = []
queue.extend([{
'prompt': '3/4 shot, candid photograph of a beautiful 30 year old redhead woman with messy dark hair, peacefully sleeping in her bed, night, dark, light from window, dark shadows, masterpiece, uhd, moody',
'seed': 877866765,
}])
pipe = StableDiffusionXLPipeline.from_pretrained(
'stabilityai/stable-diffusion-xl-base-1.0',
use_safetensors=True,
torch_dtype=torch.float16,
variant='fp16',
).to('cuda')
generator = torch.Generator(device='cuda')
for i, generation in enumerate(queue, start=1):
generator.manual_seed(generation['seed'])
image = pipe(
prompt=generation['prompt'],
generator=generator
).images[0]
image.save(f'image_{i}.png') |
#23 Looking now at the history I suppose this is related, this pipeline is for 0.24 diffusers right? |
Yes. If you want to use the code in DeepCache.sdxl.pipeline_stable_diffusion_xl, than Diffusers needs to be downgraded to 0.24(test passed under 0.21.3<diffusers<0.25.0). And another way is to install the package |
Ok thank you! i hope you can fix cpu offload bug soon, but for while for 1 batch its ok. |
Hi you need update pipeline XL to work with last version of Diffusers...
The text was updated successfully, but these errors were encountered: