• Stars
    star
    297
  • Rank 140,075 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

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

Repository Details

Remove adversarial noise from images

AdverseCleaner

The shortest ever code (16 lines of Python codes) to remove some adversarial noise from images.

It does not even use deep learning.

And I personally think anisotropic filtering methods are more effective than training noise-removal neural networks because convolution operations are essentially non-anisotropic.

In frequency domain, anisotropic methods are usually more โ€œkillingโ€.

No GPU is needed. Each 1024px image only need less than 3 seconds on my laptop CPU.

Update

2023/03/28 โ€“ Seems that using guided filter is not safe enough because the guidance already has adversarial noise in it; the guided filter may bring the adversarial noise back. Perhaps a โ€˜saferโ€™ idea is to use some other things to process the initial anisotropic filtered image. I will try some random ideas when I have free time but it seems that I do not have so much free time recently.

Run

conda env create -f environment.yaml
conda activate advc
python clean.py

Feel free to take a look at the code to change input images.

Result

The test image is from here.

Input (with adversarial noise):

p

Output (removing adversarial noise, 2.13 seconds on my laptop CPU):

p

Implementations

Thank the community for making more implementations!

HuggingFace Space

Automatic1111's Webui Plugin (with Script)

Automatic1111's Webui Plugin (with Tab)

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

LayerDiffuse_DiffusersCLI

LayerDiffuse in pure diffusers without any GUI
Python
280
star
17

AppearanceEraser

Erasing Appearance Preservation in Optimization-based Smoothing (ECCV 2020)
C++
182
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