根据众多教程安装了Stable Diffusion WebUI,然后在打算利用其进行"Train" -> "Preprocess images"时,后台报错"module ‘clip‘ has no attribute ‘load‘“。
经网上检索发现应该时由于在安装时使用了旧版的clip导致的,根据提示进行以下操作:
- pip install ftfy regex tqdm
- pip install git+https://github.com/openai/CLIP.git
重新安装后运行正常!!!
ps:如果不能从github上直接git下载,那就通过其他办法把源码下载到本地手动安装。