首先安装 conda
,之后按照下面步骤即可:
conda install -c anaconda git
git clone https://github.com/tyxsspa/AnyText.git
cd AnyText
从字体网站上下载 arialuni.ttf 字体。
mv your/path/to/arialuni.ttf ./font/Arial_Unicode.ttf
conda env create -f environment.yaml
conda activate anytext
验证是否成功
python inference.py
启动web页面
python demo.py
效果