style2paints V3 本地服务部署

style2paints V3 本地服务部署

  • style2paints 是啥
  • style2paints V3 本地服务部署

style2paints 是啥

style2paints是一个开源的给线稿上色的项目。
目前项目组租不起服务器,所以V4 线上版本失效,V3版可以在本地部署。希望大家去GitHub上募捐。

style2paints V3 本地服务部署

  1. 安装Anaconda 安装完了最好修改下pip install的默认位置,要不就都装到C盘去了。具体要修改Anaconda3\Lib\site.py的这里style2paints V3 本地服务部署_第1张图片,
  2. 按照以下步骤Launch Server
    在Anaconda Prompt中执行
pip install tensorflow_gpu
pip install keras
pip install bottle
pip install gevent
pip install h5py
pip install paste
pip install opencv-python
pip install scikit-image
git clone https://github.com/lllyasviel/style2paints.git

注意!! tensorflow_gpu 要在conda下安装,具体操作参考这里。正统的方法貌似需要安装CUDA,这里没装也没什么影响
Then you need to download all models from our Google Drive这里 and put these into ‘server’ folder.

  1. 在Anaconda 里的Spyder 里运行server目录下的 server.py,访问127.0.0.1:80,完成 可能会有端口占用的问题,把server.py里最后的端口号改下就行

你可能感兴趣的:(style2paints V3 本地服务部署)