Pierre Fernandez commited on
Commit
d78a77d
β€’
1 Parent(s): 4bee283

resolved icon issue

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Watermarking in SSL latent spaces
3
- emoji: :lock:
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(size=(1, 2048))
18
 
19
 
20
  def build_backbone(path, name='resnet50'):
21
  """ Builds a pretrained ResNet-50 backbone. """
22
- model = getattr(models, name)(pretrained=True)
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)