stable-diffusion-webui-aesthetic-gradients icon indicating copy to clipboard operation
stable-diffusion-webui-aesthetic-gradients copied to clipboard

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

Open DarkAlchy opened this issue 2 years ago • 1 comments

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'

DarkAlchy avatar Jan 17 '23 07:01 DarkAlchy

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

https://github.com/CompVis/stable-diffusion/issues/59#issuecomment-1459771606

hananbeer avatar Mar 08 '23 08:03 hananbeer