Skip to content

adversarial example for single channel (greyscale) caffe models #29

Description

@rajasekharponakala

hi,
i'm using the adversarial-example-caffe scripts to test my single channel model.

However, i tried changing caffe.io.load_image(image_path, color=False) and set the channel_swap uncommented, but no use, any help?
This is the traceback, that i'm getting:
Traceback (most recent call last): File "adv.py", line 129, in <module> make_n_test_adversarial_example(img, net, transformer, epsilon, label_index=label_index) File "adv.py", line 40, in make_n_test_adversarial_example attack_hwc = transformer.deprocess(data_blob, transformed_img + adversarial_noise[0]) File "/home/raja/Documents/rs/caffe/python/caffe/io.py", line 174, in deprocess decaf_in += mean ValueError: non-broadcastable output operand with shape (224,224) doesn't match the broadcast shape (1,224,224)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions