
Eine Python-Toolbox zur Erstellung adversarialer Beispiele, die neuronale Netze in PyTorch, TensorFlow und JAX täuschen.
home: true heroImage: /logo.png heroText: Foolbox tagline: "Foolbox: Schnelle Adversarial-Angriffe zur Bewertung der Robustheit von Machine-Learning-Modellen in PyTorch, TensorFlow und JAX" actionText: Loslegen → actionLink: /guide/ features:
Foolbox ist eine Python-Bibliothek, mit der du ganz einfach Adversarial-Angriffe gegen Machine-Learning-Modelle wie tiefe neuronale Netze ausführen kannst. Sie basiert auf EagerPy und funktioniert nativ mit Modellen in PyTorch, TensorFlow und JAX.
import foolbox as fb
model = ...
fmodel = fb.PyTorchModel(model)
attack = fb.attacks.LinfPGD()
epsilons = [0.0, 0.001, 0.01, 0.03, 0.1, 0.3, 0.5, 1.0]
advs, _, success = attack(fmodel, images, labels, epsilons=epsilons)