Comments (3)
I had a little look at this and I thought that the easiest solution was probably to vendor the functions from tfa.image
that are used in this framework. What do you think?
I think they are (based on https://github.com/search?q=repo%3ATrusted-AI%2Fadversarial-robustness-toolbox+tfa.&type=code):
tfa.image.random_cutout
tfa.image.median_filter2d
tfa.image.transform
tfa.image.rotate
See also tensorflow/addons#2845
from adversarial-robustness-toolbox.
Hi @jamesmyatt Thank you for the update, we have noticed it too. I'm currently working on updating ART and it's testing for Tensorflow 2.14. I have not yet found replacement function for all functions we use from TFA. Would you be interested to take a closer look at ART's dependencies and how to best replace them?
from adversarial-robustness-toolbox.
I think that:
tfa.image.transform
-> Keras has a function that appears to match (https://github.com/keras-team/keras/blob/v2.14.0/keras/layers/preprocessing/image_preprocessing.py#L720)tfa.image.rotate
-> can be implemented via the transform function above (c.f. https://github.com/keras-team/keras/blob/68f9af408a1734704746f7e6fa9cfede0d6879d8/keras/layers/preprocessing/image_preprocessing.py#L987). Although the layer could probably be refactored to extract the random rotation (https://keras.io/api/layers/preprocessing_layers/image_augmentation/random_rotation/)tfa.image.random_cutout
-> Keras CV (https://keras.io/api/keras_cv/layers/preprocessing/random_cutout/)tfa.image.median_filter2d
-> probably just copy-and-paste this or replace it with a different filter from tfio.experimental.filter
from adversarial-robustness-toolbox.
Related Issues (20)
- .
- Lยน `FGM` is wrong + extend to all p >= 1 HOT 5
- Implement HuggingFace Object Detection Estimators
- Not generating Adversarial examples HOT 1
- PyTorch classes that check torch.optim.lr_scheduler._LRScheduler HOT 1
- AdversarialTrainer parameter name missmatch HOT 2
- Incorrect Documentation regarding attacks.poisoning HOT 1
- Auto PGD not working with DLR loss for binary classification HOT 1
- ERROR collecting tests/attacks/evasion/test_brendel_and_bethge.py
- Measured Linf norm exceeds epsilon for ACG HOT 1
- Risky values in tests
- Gradient Explosion
- Robust
- Rr
- adversarial audio example notebook not giving the same results HOT 2
- Unable to utilize PytorchClassifier for ASR model HOT 1
- List of projects/tools utilising ART [JATIC-I4-IBM]
- Attack > Evasion > Momentum Iterative Method: major issues HOT 1
- Package cannot be imported after installing with pip HOT 3
- Deprecated `pkg_resources` raises `DeprecationWarning`s HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adversarial-robustness-toolbox.