提示No module named 'cog',自己pip install cog后提示,
/CLIP_prefix_caption/predict.py", line 49, in
class Predictor(cog.Predictor):
AttributeError: module 'cog' has no attribute 'Predictor' 求大佬帮助
可能是你安装的cog库版本不匹配或者不完整导致的错误。解决方案
如果还不行,可以从从GitHub上下载最新版本的clipcap并替换掉原有的文件。具体步骤如下: