Skip to content

Dev/ssl 2 - #1

Open
Syuf1514 wants to merge 6 commits into
masterfrom
dev/ssl-2
Open

Dev/ssl 2#1
Syuf1514 wants to merge 6 commits into
masterfrom
dev/ssl-2

Conversation

@Syuf1514

Copy link
Copy Markdown
Collaborator

Странно оно себя ведет
W B Chart 25_04_2022, 19_10_14
W B Chart 25_04_2022, 19_10_23
W B Chart 25_04_2022, 19_09_47

Comment thread metrlib/criteria/barlow.py Outdated
def forward(self, batch, labels, **kwargs):
assert torch.all(labels[0::2] == labels[1::2]).item()
batch_norm = batch.sub(batch.mean(dim=0)).div(batch.std(dim=0))
cc = batch_norm[0::2].T @ batch_norm[1::2]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не вижу деления на N, как в Algorithm 1 из https://arxiv.org/pdf/2103.03230.pdf:
c = mm(z_a_norm.T, z_b_norm) / N # DxD
я что-то упускаю?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, точно. Спасибо, пофиксил, стало лучше. Но качество все равно не дотягивает в таком вид
W B Chart 06_05_2022, 10_27_35
W B Chart 06_05_2022, 10_27_27
W B Chart 06_05_2022, 10_27_10
е

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants