这篇教程Python人工智能之sg2im文字转图像写得很实用,希望能帮到您。 【人工智能项目】sg2im文字转图像 
本次主要对github上的sg2im源码进行执行训练,得到结果。 1.从github上下载源码!git clone https://github.com/google/sg2im.git
Cloning into 'sg2im'... remote: Enumerating objects: 85, done.[K remote: Total 85 (delta 0), reused 0 (delta 0), pack-reused 85[K Unpacking objects: 100% (85/85), done.
! cp -r sg2im/sg2im sg2im/scripts/
!pip install -r sg2im/requirements.txt
Collecting cloudpickle==0.5.3 Downloading https://files.pythonhosted.org/packages/e7/bf/60ae7ec1e8c6742d2abbb6819c39a48ee796793bcdb7e1d5e41a3e379ddd/cloudpickle-0.5.3-py2.py3-none-any.whl Requirement already satisfied: cycler==0.10.0 in /usr/local/lib/python3.6/dist-packages (from -r sg2im/requirements.txt (line 2)) (0.10.0) Collecting Cython==0.28.3 [?25l Downloading https://files.pythonhosted.org/packages/6f/79/d8e2cd00bea8156a995fb284ce7b6677c49eccd2d318f73e201a9ce560dc/Cython-0.28.3-cp36-cp36m-manylinux1_x86_64.whl (3.4MB) [K | Python 删除文件每一行的行号思路解读 Python 5种常见字符串去除空格操作的方法
|