Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Memory Bank #1009

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Fix Memory Bank #1009

merged 1 commit into from
Dec 15, 2022

Conversation

guarin
Copy link
Contributor

@guarin guarin commented Dec 14, 2022

Changes

Add missing assignment after normalizing memory bank. This made the network collapse during training because the norm of the randomly initialized bank was too large. The bug was introduced in #993 (lightly v1.2.37).

How was it tested?

Ran the MoCo Tutorial and verified that the loss decreases.

Closes #1007

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Base: 88.42% // Head: 88.42% // No change to project coverage 👍

Coverage data is based on head (023dfa8) compared to base (4685d72).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1009   +/-   ##
=======================================
  Coverage   88.42%   88.42%           
=======================================
  Files         103      103           
  Lines        4752     4752           
=======================================
  Hits         4202     4202           
  Misses        550      550           
Impacted Files Coverage Δ
lightly/loss/memory_bank.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@IgorSusmelj IgorSusmelj left a comment

Choose a reason for hiding this comment

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

LGTM

@guarin guarin mentioned this pull request Dec 15, 2022
@guarin guarin merged commit 7891ae7 into master Dec 15, 2022
@guarin guarin deleted the guarin-fix-memory-bank branch December 15, 2022 08:41
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.

Loss stuck
2 participants