GithubHelp home page GithubHelp logo

yurui997 / pix2pix-keras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wmylxmj/pix2pix-keras

1.0 0.0 1.0 329.1 MB

基于pix2pix模型的动漫图片自动上色(keras实现) 2019-2-25

License: MIT License

Python 100.00%

pix2pix-keras's Introduction

Pix2Pix-Keras

基于pix2pix模型的动漫图片自动上色 2019-2-25

数据集的准备:

  • 把训练的彩色图片放入datasets\OriginalImages文件夹
  • 运行prepare.py进行数据集的处理与准备
  • 注意:当前datasets中的训练集过少,可增加训练集进行训练,防止过拟合

训练模型:

  • 若要加载预训练权重,将权重文件放入weights文件夹
  • 最新权重(在30020张图片的大数据集下训练后的权重)下载
  • 链接:https://pan.baidu.com/s/1tmfMTCpAFVpC6Z7GWvkrfA 提取码:cac2
  • 在demo.py中新建一个pix2pix模型实例
  • 调用实例中的train函数进行训练

为新的图片上色:

  • 将权重文件放入weights文件夹
  • 新建一个pix2pix模型实例
  • 调用demo.py中的predict_single_image函数进行图片上色

Demo(中间的为AI预测,右边的为原始图像):

泛化能力测式(给漫画上色):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.