lorebianchi98 commited on
Commit
8465f05
·
1 Parent(s): 42c1a72
Files changed (1) hide show
  1. dinotext.py +1 -1
dinotext.py CHANGED
@@ -279,7 +279,7 @@ class DINOText(nn.Module):
279
  text_embs = text_embs.mean(dim=1).float()
280
  if type(self.proj) == ProjectionLayer or type(self.proj) == DoubleMLP:
281
  text_embs = self.proj.project_clip_txt(text_embs)
282
- text_embs = us.normalize(text_embs, dim=-1)
283
 
284
  return text_embs
285
 
 
279
  text_embs = text_embs.mean(dim=1).float()
280
  if type(self.proj) == ProjectionLayer or type(self.proj) == DoubleMLP:
281
  text_embs = self.proj.project_clip_txt(text_embs)
282
+ text_embs = normalize(text_embs, dim=-1)
283
 
284
  return text_embs
285