赞
踩
在使用DiAD官方给的代码时候,出现了以下bug:
OSError: Can’t load tokenizer for ‘openai/clip-vit-large-patch14’. If you were trying to load it from ‘https://huggingface.co/models’, make sure you don’t have a local directory with the same name. Otherwise, make sure ‘openai/clip-vit-large-patch14’ is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
DiAD依托于stable-diffusion,而stable-diffusion在安装时由于网络原因无法下载’openai/clip-vit-large-patch14’中的文件和模型。
步骤1:
创建文件夹并从官网手动下载’openai/clip-vit-large-patch14'
官网
或者百度云:
链接:https://pan.baidu.com/s/1PdubgWYsw_QAawIK-g-Rnw?pwd=qjzh
提取码:qjzh
–来自百度网盘超级会员V6的分享
步骤2:
将对应的module.py文件中相关的目录进行修改,我的共两处
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。