ff94e24d202ba1e5861caddc915df0c43f23b766,examples/application_object_detection.py,,main,#,62

Before Change


    gradients = frcnn.loss_gradient(x=image, y=None)

    // Create adversarial image
    image_adv = image + np.sign(gradients) * 8 * 1
    image_adv = np.clip(image_adv, a_min=0, a_max=255).astype(np.uint8)

    for i in range(image_adv.shape[0]):

After Change


    image_adv = attack.generate(x=image, y=None)

    print("np.amax(np.abs(image - image_adv))")
    print(np.amax(np.abs(image - image_adv)))

    for i in range(image_adv.shape[0]):
        plt.axis("off")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ff94e24d202ba1e5861caddc915df0c43f23b766
Time: 2020-03-18
Author: beat.buesser@ie.ibm.com
File Name: examples/application_object_detection.py
Class Name:
Method Name: main


Project Name: suavecode/SUAVE
Commit Name: 233dc2774129223fb6356ac9d6d557a15ec8bdb4
Time: 2016-01-11
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Power/Battery/Discharge/datta_discharge.py
Class Name:
Method Name: datta_discharge


Project Name: scipy/scipy
Commit Name: e9eb6182d5d3297e79b432a66a2828eb720431ca
Time: 2015-03-16
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_onenormest.py
Class Name:
Method Name: sign_round_up