• Stars
    star
    182
  • Rank 211,154 (Top 5 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Erasing Appearance Preservation in Optimization-based Smoothing (ECCV 2020)

The EAP Image Smoothing Toolkit

The EAP Toolkit is a set of image smoothing tools developed by the Team of Style2Paints (ToS2P), aimed at finding a solution to decompose texture or illumination from images.

The uniqueness of EAP is that it dynamically finds a set of "erasing" positions to help better pattern decompostion. Please refer to our Project Page for more details.

The codes are written in Matlab. I have spent one and a half months to convert those codes to python but finally failed. It is impossible to implement these tools in python. This is mainly because the sparse optimization in python is very weak.

Tools

Naive total variation smoothing

Input files:

./code/matlab/tv/input.png

Output files:

./code/matlab/tv/output.png

Command:

matlab ./code/matlab/tv/run.m

Total variation smoothing with human erasing mask

Input files:

./code/matlab/tv_EAP_human/input.png
./code/matlab/tv_EAP_human/mask.png

Output files:

./code/matlab/tv_EAP_human/output.png

Command:

matlab ./code/matlab/tv_EAP_human/run.m

Total variation smoothing with EAP automatic erasing

Input files:

./code/matlab/tv_EAP_auto/input.png

Output files:

./code/matlab/tv_EAP_auto/output.png
./code/matlab/tv_EAP_auto/mask.png

Command:

matlab ./code/matlab/tv_EAP_auto/run.m

Relative total variation smoothing

Input files:

./code/matlab/rtv/input.png

Output files:

./code/matlab/rtv/output.png

Command:

matlab ./code/matlab/rtv/run.m

Relative total variation smoothing with human erasing mask

Input files:

./code/matlab/rtv_EAP_human/input.png
./code/matlab/rtv_EAP_human/mask.png

Output files:

./code/matlab/rtv_EAP_human/output.png

Command:

matlab ./code/matlab/rtv_EAP_human/run.m

Relative total variation smoothing with EAP automatic erasing

Input files:

./code/matlab/rtv_EAP_auto/input.png

Output files:

./code/matlab/rtv_EAP_auto/output.png
./code/matlab/rtv_EAP_auto/mask.png

Command:

matlab ./code/matlab/rtv_EAP_auto/run.m

L0 smoothing

Input files:

./code/matlab/l0/input.png

Output files:

./code/matlab/l0/output.png

Command:

matlab ./code/matlab/l0/run.m

L0 smoothing with human erasing mask

Input files:

./code/matlab/l0_EAP_human/input.png
./code/matlab/l0_EAP_human/mask.png

Output files:

./code/matlab/l0_EAP_human/output.png

Command:

matlab ./code/matlab/l0_EAP_human/run.m

L0 smoothing with EAP automatic erasing

Input files:

./code/matlab/l0_EAP_auto/input.png

Output files:

./code/matlab/l0_EAP_auto/output.png
./code/matlab/l0_EAP_auto/mask.png

Command:

matlab ./code/matlab/l0_EAP_auto/run.m

L1 smoothing

Input files:

./code/matlab/L1/input.png

Output files:

./code/matlab/L1/output.png

Command:

matlab ./code/matlab/L1/run.m

L1 smoothing with human erasing mask

Input files:

./code/matlab/L1_EAP_human/input.png
./code/matlab/L1_EAP_human/mask.png

Output files:

./code/matlab/L1_EAP_human/output.png

Command:

matlab ./code/matlab/L1_EAP_human/run.m

L1 smoothing with EAP automatic erasing

Input files:

./code/matlab/L1_EAP_auto/input.png

Output files:

./code/matlab/L1_EAP_auto/output.png
./code/matlab/L1_EAP_auto/mask.png

Command:

matlab ./code/matlab/L1_EAP_auto/run.m

Application

Our applications are from many third-party projects. Please refer to their original sites for more details.

Illumination editing

Illumination decomposition for material recoloring with consistent interreflections
http://graphics.berkeley.edu/papers/Carroll-IDM-2011-08/index.html

Texture editing

Structure Extraction from Texture via Relative Total Variation
http://www.cse.cuhk.edu.hk/~leojia/projects/texturesep/

Color editing

Decomposing Images into Layers via RGB-space Geometry
https://cragl.cs.gmu.edu/singleimage/

Citation

If you use this code for your research, please cite our paper:

@InProceedings{EAP2020,
author={Lvmin Zhang and Chengze Li and Yi JI and Chunping Liu and Tien-tsin Wong}, 
booktitle={European Conference on Computer Vision (ECCV)}, 
title={Erasing Appearance Preservation in Optimization-based Smoothing}, 
year={2020}, 
}

中文社区

我们有一个除了技术什么东西都聊的以技术交流为主的群。如果你一次加群失败,可以多次尝试: 816096787。

More Repositories

1

Fooocus

Focus on prompting and generating
Python
40,542
star
2

ControlNet

Let us control diffusion models!
Python
29,314
star
3

style2paints

sketch + style = paints 🎨 (TOG2018/SIGGRAPH2018ASIA)
JavaScript
17,966
star
4

Omost

Your image is almost there!
Python
7,046
star
5

stable-diffusion-webui-forge

Python
5,639
star
6

ControlNet-v1-1-nightly

Nightly release of ControlNet 1.1
Python
4,635
star
7

IC-Light

More relighting!
Python
4,561
star
8

sd-forge-layerdiffuse

[WIP] Layer Diffusion for WebUI (via Forge)
Python
3,720
star
9

Paints-UNDO

Understand Human Behavior to Align True Needs
Python
3,119
star
10

LayerDiffuse

Transparent Image Layer Diffusion using Latent Transparency
1,943
star
11

PaintingLight

Generating Digital Painting Lighting Effects via RGB-space Geometry (SIGGRAPH2020/TOG2020)
Python
720
star
12

MangaCraft

This project has been abandoned.
708
star
13

sketchKeras

an u-net with some algorithm to take sketch from paints
Python
453
star
14

DanbooRegion

DanbooRegion: An Illustration Region Dataset (ECCV 2020)
Python
384
star
15

YGOProUnity_V2

A sample version of ygopro in Unity
C#
314
star
16

AdverseCleaner

Remove adversarial noise from images
Python
297
star
17

LayerDiffuse_DiffusersCLI

LayerDiffuse in pure diffusers without any GUI
Python
280
star
18

ToonDecompose

A project to decompose the components in cartoon animations.
Python
116
star
19

SingleFileDB

A single file implementation of key-value database for Python 3.
Python
50
star
20

MangaFilter

"Generating Manga from Illustrations via Mimicking Manga Creation Workflow" in CVPR 2021
HTML
44
star
21

Style2PaintsResearch

Style2Paints Research Website
HTML
27
star
22

SplitFilling

"User-Guided Line Art Flat Filling with Split Filling Mechanism" in CVPR 2021
HTML
26
star
23

huggingface_guess

A simple tool to guess an HuggingFace repo URL from a state dict.
Python
23
star
24

lllyasviel.github.io

lllyasviel.github.io
15
star
25

lllyasviel

lllyasviel
8
star
26

GitPageToonDecompose

GitHub Page of ToonDecompose
HTML
5
star
27

forge-legacy-extensions

some archived legacy forge extensions
Python
5
star
28

misc_files

Misc files.
3
star
29

misc

Misc files.
2
star
30

Discussion

2
star
31

pages

some github pages
JavaScript
2
star
32

google_blockly_prototypes

1
star