Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
wgcban
/
mix-bt
like
1
5 datasets
English
self-supervised learning
barlow-twins
arxiv:
6 papers
License:
mit
Model card
Files
Files and versions
Community
803ef9e
mix-bt
/
ssl-sota
/
methods
/
norm_mse.py
wgcban
Upload 98 files
803ef9e
12 months ago
raw
Copy download link
history
blame
Safe
159 Bytes
import
torch.nn.functional
as
F
def
norm_mse_loss
(
x0, x1
):
x0 = F.normalize(x0)
x1 = F.normalize(x1)
return
2
-
2
* (x0 * x1).
sum
(dim=-
1
).mean()