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

AttributeError: 'FrozenOpenCLIPEmbedder' object has no attribute 'transformer' #24

Open
DarkAlchy opened this issue Jan 17, 2023 · 1 comment

Comments

@DarkAlchy
Copy link

Applying fix for #27 or not this is the error I get:

File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-aesthetic-gradients-master\scripts\aesthetic.py", line 73, in generate_embs
res = aesthetic_clip.generate_imgs_embd(*args)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-aesthetic-gradients-master\aesthetic_clip.py", line 104, in generate_imgs_embd
model = aesthetic_clip().to(device)
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-aesthetic-gradients-master\aesthetic_clip.py", line 97, in aesthetic_clip
aesthetic_clip_model = CLIPModel.from_pretrained(shared.sd_model.cond_stage_model.wrapped.transformer.name_or_path)
File "D:\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1207, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'FrozenOpenCLIPEmbedder' object has no attribute 'transformer'

@hananbeer
Copy link

see my answer here, hopefully it works for you too:

CompVis/stable-diffusion#59 (comment)

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