Git Product home page Git Product logo

Comments (4)

ds2268 avatar ds2268 commented on August 28, 2024

I have prepared a pull request that should fix the issue (#10). I think that this should not be added to the global loss.

from vicregl.

ds2268 avatar ds2268 commented on August 28, 2024

I see that you have used detach. The learned representation was thus not affected by the gradients coming from the classification loss. Still, this is ugly and the actual loss value does thus not represent the actual VICRegL loss.

from vicregl.

jinx2018 avatar jinx2018 commented on August 28, 2024

@Adrien987k thank you for the work and the implementation.

I have noticed that you are also using classification loss, in addition to the VICReg and VICRegL losses. The classification loss is not mentioned in the paper and was also not used in the original VICReg.

On the first hand, it seems a bit off, given that you won't have labels available when pretraining in the wild and it destroys the purpose of "self-supervised" pre-training ?

Hi! have you ever tried to reproduce the models without the classification loss?

from vicregl.

Adrien987k avatar Adrien987k commented on August 28, 2024

Hi,

Thanks for pointing this out, as you mentioned, there is a detach operation preventing the gradient for propagating from the classification head to the pretrained backbone.

There is absolutely no difference between having this head and not having it. The VICRegL loss is just the total loss minus the classification loss, it will not change the learning dynamics.

from vicregl.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.