thisisalirah / GeoDA

This repository contains the official PyTorch implementation of GeoDA algorithm. GeoDA is a Black-box attack to generate adversarial example for image classifiers.
31 stars 7 forks source link

How to support targeted attack? #4

Open machanic opened 3 years ago

machanic commented 3 years ago

I saw the function def is_adversarial only uses original label, rather than target class label. It is located in https://github.com/thisisalirah/GeoDA/blob/8cc2aba01f3659fc78880f7a63cb056686c85577/GeoDA.py#L127

How to modify this code to support targeted attack using target class label?