Is there one example of using Expectation Over Transformation in Tensorflow Models? #1672
-
|
Is there any working example of ART with custom transformations in a Tensorflow model? I would like to attack the following model: The random operations I would like to do are in the following sequential model. I couldn't find anything in the documentation. Could anybody help me in adapting such a model and transformations to be used to generate an adversarial image with Expectation Over Transformation with the ART? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I think that's a very good question. Unfortunately, ART's current tools in Please let me know if you would be interested to implement this tool! I would be happy to provide support and I think would be useful for many users of ART. |
Beta Was this translation helpful? Give feedback.
Hi @anselmoferreira
I think that's a very good question. Unfortunately, ART's current tools in
art.preprocessing.expectation_over_transformationdon't have an implementation that supportstf.keras.Sequential. The good news are that I think we should have such an implementation and that it is easy to implement. Basically we would need to create an implementation ofart.preprocessing.expectation_over_transformation.tensorflow.EoTTensorFlowV2() e.g. similar tofrom art.preprocessing.expectation_over_transformation.natural_corruptions.gaussian_noise.tensorflow.EoTGaussianNoiseTensorFlowbut with an argument of accepting an instance oftf.keras.Sequentialto sample in method_transformwhich …