Image Classification
Transformers
Safetensors
nula
computer-vision
cnn
cifar10
adversarial-robustness
stress-test
downsampling
anti-aliasing
custom_code
Instructions to use MamaPearl/nula-cifar10-robust-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MamaPearl/nula-cifar10-robust-v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="MamaPearl/nula-cifar10-robust-v0", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("MamaPearl/nula-cifar10-robust-v0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ NULA is trained to reduce this dependence and instead form representations that
|
|
| 28 |
|
| 29 |
Downsampling operations are linear maps from a high-dimensional space to a lower-dimensional one.
|
| 30 |
|
| 31 |
-
By the Rank-Nullity theorem, this matrix has a massive NULL space
|
| 32 |
|
| 33 |
An attacker can exploit this: they utilize the discarded samples of these downsampling operations as extra degrees of freedom.
|
| 34 |
|
|
@@ -40,8 +40,8 @@ The result is an image perceptually identical to the original, with a manipulate
|
|
| 40 |
|
| 41 |
[BlurPool: what it does mechanically and why it addresses the problem]
|
| 42 |
[SE blocks: what they add]
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
|
| 47 |
### FIRST EVALUATION (Base)
|
|
|
|
| 28 |
|
| 29 |
Downsampling operations are linear maps from a high-dimensional space to a lower-dimensional one.
|
| 30 |
|
| 31 |
+
By the Rank-Nullity theorem, this matrix has a massive NULL space.
|
| 32 |
|
| 33 |
An attacker can exploit this: they utilize the discarded samples of these downsampling operations as extra degrees of freedom.
|
| 34 |
|
|
|
|
| 40 |
|
| 41 |
[BlurPool: what it does mechanically and why it addresses the problem]
|
| 42 |
[SE blocks: what they add]
|
| 43 |
+
- For augmentation functions, see [`augmentations.py`](augmentations.py).
|
| 44 |
+
- For the adversarial training loop, see [`train_robust.py`](train_robust.py).
|
| 45 |
|
| 46 |
|
| 47 |
### FIRST EVALUATION (Base)
|