Spaces:
Running
on
Zero
Running
on
Zero
to resnet50_robust
Browse files- inference.py +2 -2
inference.py
CHANGED
|
@@ -24,8 +24,8 @@ print(f"Using device: {device}")
|
|
| 24 |
|
| 25 |
# Constants
|
| 26 |
MODEL_URLS = {
|
| 27 |
-
'
|
| 28 |
-
'
|
| 29 |
}
|
| 30 |
|
| 31 |
IMAGENET_MEAN = [0.485, 0.456, 0.406]
|
|
|
|
| 24 |
|
| 25 |
# Constants
|
| 26 |
MODEL_URLS = {
|
| 27 |
+
'resnet50_robust': 'https://huggingface.co/madrylab/robust-imagenet-models/resolve/main/resnet50_l2_eps3.ckpt',
|
| 28 |
+
'resnet50_standard': 'https://huggingface.co/madrylab/robust-imagenet-models/resolve/main/resnet50_l2_eps0.ckpt'
|
| 29 |
}
|
| 30 |
|
| 31 |
IMAGENET_MEAN = [0.485, 0.456, 0.406]
|