adobe-research / custom-diffusion

Custom Diffusion: Multi-Concept Customization of Text-to-Image Diffusion (CVPR 2023)
https://www.cs.cmu.edu/~custom-diffusion
Other
1.87k stars 139 forks source link

'Attention' object has no attribute 'cross_attention_norm' #68

Closed kopyl closed 1 year ago

kopyl commented 1 year ago

1:

I tried this space: https://huggingface.co/spaces/nupurkmr9/custom-diffusion

but instead of running it on space, i ran it as a Docker image cause it did not start the training due to your typo: you had: diffuser_training.py the actual file in the files:diffusers_training.py

2: It's downloading regularization images each time I run the training with the same class name. Why?

3: 'Attention' object has no attribute 'cross_attention_norm'

The same as here: https://github.com/adobe-research/custom-diffusion/issues/57

How to fix it? And why did you close the issue before fixing it?

Do you ever run your code before publishing>

kopyl commented 1 year ago

Also it uses old diffusers so i get this error: ModuleNotFoundError: No module named 'diffusers.models.cross_attention'

Which was fixed by pip install diffusers==0.18.1

kopyl commented 1 year ago

I found the earlies implementation of diffusers which first got the cross_attention module.

pip install diffusers==0.14.0 fixed it

kopyl commented 1 year ago

@nupurkmr9 did you fix it?

QMoQ commented 7 months ago

I also met this problem, and the version of diffuser I use is 0.21.0. I found the attribute 'cross_attention_norm' in Class 'Attention' is actually 'norm_cross'. so I fixed it.