Giter Site home page Giter Site logo

chinese_mending's Introduction

Introduction:

The task:

example

The 1st columns are the original image. The 2nd columns are the 'stained' image. The 3rd columns are the original character's edges. And the 4th columns are the what we want to get from input(2nd column).

You can comprehend this process as following, and GAN achieve it at a single step:

steps

We use a modified edge-connect model to realize it.

We remain the edge model and remove the useless inpainting model in this task. The input is composed of the 'stained' image and the 'stained' edge, as in this task, you can not recognize the missing part in the input image. Therefore it's not a purely inpainting problem actually.

You can get more information about this repo from the edge-connect repo.

Instuctions

Dataset

You can get the dataset from character-dataset.

Pretrained models

You can get the trained checkpoints from checkpoints.

Test

Test the model on the testing set:

python test.py --checkpoints ./checkpoints_dir --output ./output_dir

And you can config the behavior in the config.yml file in the 'checkpoints_dir'. You can get more detail about the config file from edge-connect repo.

Train

Train the model:

python train.py --checkpoints ./checkpoints_dir

chinese_mending's People

Contributors

cassinihuy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.