Skip to content

An extremely thin wrapper to load Foolbox-native attacks in Cleverhans 4 (beta)

License

Notifications You must be signed in to change notification settings

wielandbrendel/cleverfool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CleverFool

This is an extremely thin convenience wrapper (just 40 lines of code) to load Foolbox-native attacks in Cleverhans 4 (currently both in beta as of 10.01.2020).

Even without this wrapper, it should generally be possible to switch between the two frameworks with minimal changes to your code.

Installation

pip install cleverfool

Basic usage

import foolbox.ext.native as fbn
from cleverfool import convert_foolbox_attack

attack = convert_foolbox_attack(fbn.attacks.LinfinityBasicIterativeAttack)

# ... use attack just like any other CleverHans attack

About

An extremely thin wrapper to load Foolbox-native attacks in Cleverhans 4 (beta)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages