赞
踩
当我运行
python scripts/txt2img.py "a dog" --plms
时报错:
from transformers.utils import SAFE_WEIGHTS_NAME as TRANSFORMERS_SAFE_WEIGHTS_NAME
ImportError: cannot import name 'SAFE_WEIGHTS_NAME' from 'transformers.utils'
解决办法:
pip install diffusers==0.12.1
后重新运行
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。