Giter Site home page Giter Site logo

deep-descreen's Introduction

Anime Halftone Inversing

CNN solution for scanning anime prints

This project is still WIP, and its codes are extremely rough. So they might not work properly.

Aiming

When you digitize paper-printed anime arts, you have to smooth halftone dots (because of offset printing). Usually, using filter-based methods (e.g. Gaussian blur) give undesired blurry results. This project solves it by using CNN (Convolutional Neural Network) which convert dotted images into smooth image.

Here are the provisional result and comparison to the baseline (Gaussian blur).

comparison

Train

python3 -m descreening.pitch.make JapanColor2011Coated.icc images pitch_dataset

Select CUDA Device

CUDA_VISIBLE_DEVICES

deep-descreen's People

Contributors

curegit avatar

Stargazers

Aster Wang avatar

Watchers

Kostas Georgiou avatar  avatar

deep-descreen's Issues

[開発メモ] 色のずれ

データセット作成時

  • ハーフトーンの平滑化した画像の最小最大で補正
  for channels
    min, max = blur(halftone, radius)
    for halftone.pixels
      i = ilerp(min, color, max)
      halftone.pixels <- lerp(original.min, i, original.max)

推論時

  for channels
    result <- result / (sum(result) / sum(input))

[開発メモ] スケール不変性

モデルのターゲットとなるドット間隔まで、pixel averaging で縮小してから実行すれば良い
=> ドット間隔に対するスケール不変性

訓練用画像の内容セマンティックによるスケール不変性は、augmentation によって確保する

[開発メモ] 回転不変性

CNNカーネルを8通りに複製する

  • original
  • R90
  • R180
  • R270
  • H-flip
  • V-flip
  • H-flip + R90
  • V-flip + R90

参考: Roto-translation equivariant convolutional networks

[開発メモ] 活性化関数

GELU vs ReLU vs Leaky ReLU

Leaky ReLU はナシ。ReLU のほうがシャープ。
GELU と ReLU は少しの差だが、ReLU のほうが高品質。

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.