Spaces:
Runtime error
Runtime error
Pierre Fernandez
commited on
Commit
β’
d78a77d
1
Parent(s):
4bee283
resolved icon issue
Browse files
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
title: Watermarking in SSL latent spaces
|
3 |
-
emoji:
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
|
|
1 |
---
|
2 |
title: Watermarking in SSL latent spaces
|
3 |
+
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
app.py
CHANGED
@@ -14,12 +14,12 @@ torch.manual_seed(0)
|
|
14 |
np.random.seed(0)
|
15 |
|
16 |
FPR = 1e-6
|
17 |
-
carrier = np.random.randn(
|
18 |
|
19 |
|
20 |
def build_backbone(path, name='resnet50'):
|
21 |
""" Builds a pretrained ResNet-50 backbone. """
|
22 |
-
model = getattr(models, name)(pretrained=
|
23 |
model.head = nn.Identity()
|
24 |
model.fc = nn.Identity()
|
25 |
checkpoint = torch.load(path, map_location=device)
|
|
|
14 |
np.random.seed(0)
|
15 |
|
16 |
FPR = 1e-6
|
17 |
+
carrier = np.random.randn(1, 2048)
|
18 |
|
19 |
|
20 |
def build_backbone(path, name='resnet50'):
|
21 |
""" Builds a pretrained ResNet-50 backbone. """
|
22 |
+
model = getattr(models, name)(pretrained=False)
|
23 |
model.head = nn.Identity()
|
24 |
model.fc = nn.Identity()
|
25 |
checkpoint = torch.load(path, map_location=device)
|