AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients

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

DarkAlchy opened this issue · 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'

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

CompVis/stable-diffusion#59 (comment)