Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

deepxplore

> 编程语言
Open source

DeepXplore code release

394 stars0 likes0 views
WebsiteGitHub

About

DeepXplore code release

DeepXplore: Systematic DNN testing (SOSP'17)

See the SOSP'17 paper DeepXplore: Automated Whitebox Testing of Deep Learning Systems for more details.

Prerequisite

Python

The code should be run using python 2.7.12, Tensorflow 1.3.0, Keras 2.0.8, PIL, h5py, and opencv-python

Tensorflow

bash
sudo pip install tensorflow

if you have gpu,

bash
pip install tensorflow-gpu

Keras

bash
pip install keras

To set Keras backend to be tensorflow (two options):

bash
1. Modify ~/.keras/keras.json by setting "backend": "tensorflow"
2. KERAS_BACKEND=tensorflow python gen_diff.py

PIL

bash
pip install Pillow

h5py

bash
pip install h5py

opencv-python

bash
pip install opencv-python

Mimicus

Install from here.

File structure

  • MNIST - MNIST dataset.
  • ImageNet - ImageNet dataset.
  • Driving - Udacity self-driving car dataset.
  • PDF - Benign/malicious PDFs captured from VirusTotal/Contagio/Google provided by Mimicus.
  • Drebin - Drebin Android malware dataset.

To run

In every directory

bash
python gen_diff.py

Note

The trained weights are provided in each directory (if required). Drebin's weights are not part of this repo as they are too large to be hosted on GitHub. Download from here and put them in ./Drebin/.

Note that as DeepXplore use randomness for its exploration, you should fix the seed of the random number generator if you want deterministic and reproducable results. An example is shown below.

python
import numpy as np
import random

random.seed(1)
np.random.seed(1)

Coming soon

How to test your own DNN models.

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言