Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
taptoi committed Jan 18, 2022
2 parents d7b8591 + 2453416 commit e32b6e4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# neural-palette
Custom implementation of PaletteNet in PyTorch

*PaletteNet: Image Recolorization with Given Color Palette (Cho et. al 2017)
*PaletteNet takes two inputs: a source image to be recolored and a target palette. PaletteNet is then designed to change the color concept of a source image so that the palette of the output image is close to the target palette*

## Changes from original
- Instance normalization in decoder path seemed to cause artifacts and was removed
- Transpose-convolutions replaced with upsampling convolutions to reduce checkerboard artifacts as shown in https://distill.pub/2016/deconv-checkerboard/
- No adversarial training yet (todo)

train.py: Train the network
pre_process.py: Pre-process raw input data into original and augmented image-palette pairs and save in compressed npz format
evaluate.py: Perform the inference given a source image and a target color-palette image

## Example
**Input image:**

<img src="https://github.com/taptoi/neural-palette/blob/main/eval_in.png?raw=true" width="800">

**Target palette:**

<img src="https://github.com/taptoi/neural-palette/blob/main/eval_pal.png?raw=true">

**Recolored image:**

<img src="https://github.com/taptoi/neural-palette/blob/main/eval_out.png?raw=true" width="800">

0 comments on commit e32b6e4

Please sign in to comment.