Skip to content

Python implementation for paper: Feature Distillation: DNN-Oriented JPEG Compression Against Adversarial Examples

Notifications You must be signed in to change notification settings

sibosutd/feature-distillation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

feature-distillation

This repository implements DNN-Oriented JPEG compression introduced in the following paper

Feature Distillation: DNN-Oriented JPEG Compression Against Adversarial Examples

Introduction

DNN-Oriented JPEG Compression

Figure 1: Diagram of DNN-Oriented JPEG compression

Usage

python jpeg.py --image fig/lena.png --component dnn
usage: jpeg.py [-h] [--image IMAGE] [--component COMPONENT] [--factor FACTOR]
optional arguments:
  -h, --help            show this help message and exit
  --image IMAGE         image name
  --component COMPONENT
                        dnn-oriented or jpeg standard
  --factor FACTOR       compression factor

Results

Compare

Figure 2: Standard JPEG compression (Q = 50)

Compare

Figure 3: DNN-Oriented JPEG compression (Q = 50)

TODO

  • zigzag sorting
  • sorting by standard deviation
  • adversarial defense evaluation

Contribution

If you find a bug, feel free to create an issue.

Reference

About

Python implementation for paper: Feature Distillation: DNN-Oriented JPEG Compression Against Adversarial Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages