Skip to content
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

SDXL implementation not working #145

Open
mnlrbr opened this issue Mar 4, 2024 · 1 comment
Open

SDXL implementation not working #145

mnlrbr opened this issue Mar 4, 2024 · 1 comment

Comments

@mnlrbr
Copy link

mnlrbr commented Mar 4, 2024

I tried the "experimental.hip" file in the repositorz and it was stuck on the tokenizer.
The following message appeared:

after download and test, the error was the following
Error
Invalid source /obj/geo1/sdsolver1/solver.
(Error: Python error: Traceback (most recent call last):
File "", line 60, in
File "D:\Github/MLOPS2/scripts/python\sdpipeline\default_pipeline.py", line 203, in run
output_image = pipe(
File "D:\Github\MLOPS_2\data\dependencies\python\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "D:\Github\MLOPS_2\data\dependencies\python\diffusers\pipelines\stable_diffusion_xl\pipeline_stable_diffusion_xl.py", line 832, in __call
noise_pred = self.unet(
File "D:\Github\MLOPS_2\data\dependencies\python\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(args, **kwargs)
File "D:\Github\MLOPS_2\data\dependencies\python\accelerate\hooks.py", line 165, in new_forward
output = module._old_forward(args, kwargs)
File "D:\Github\MLOPS_2\data\dependencies\python\diffusers\models\unet_2d_condition.py", line 889, in forward
aug_emb = self.add_embedding(add_embeds)
File "D:\Github\MLOPS_2\data\dependencies\python\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, kwargs)
File "D:\Github\MLOPS_2\data\dependencies\python\diffusers\models\embeddings.py", line 192, in forward
sample = self.linear_1(sample)
File "D:\Github\MLOPS_2\data\dependencies\python\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Github\MLOPS_2\data\dependencies\python\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (2x60672 and 2816x1280)
).

It would be nice to understand how does on change and use the different models on Hugging face. I wasn't sure to have downloaded the right SDXL model.

Cheers

@olop2
Copy link

olop2 commented Mar 7, 2024

Hi , look here maybe the steps i explained will work for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants