Coder Social home page Coder Social logo

Comments (2)

suoych avatar suoych commented on August 31, 2024

Thank you for open-sourcing the code. This article has been very insightful and inspiring to me. However, I have some questions while reviewing the code.

Q1:This function currently appears to only have the Lc loss from the paper and does not include the loss from the Lr component.

Q2:In the get_loss_img2text function, the loss and extra_loss within the if branch do not correspond to those in the else branch.

Q1: 9PB}AMEUHPFA4 B(5RNQF98

Q2: @FK@NYAQ(CN@62O8$QZ~IAY

Hi, Thank you for your interest!

First, I apologize for the raw code presented in the repo, promise I will reformat and add more docstrings.

For the first question, in our real implementation, we seperately train the two branches (Each with 4 GPUs). The get_loss_img2text_image function is the image-only contrastive branch and the get_loss_img2text is the textual alignment branch.

As for the second question, we only train the model using 4 cards thus you can always refer to the if branch. The else branch is only used for debug which can be ignored.

from keds.

CCaoWWei avatar CCaoWWei commented on August 31, 2024

Thank you for open-sourcing the code. This article has been very insightful and inspiring to me. However, I have some questions while reviewing the code.
Q1:This function currently appears to only have the Lc loss from the paper and does not include the loss from the Lr component.
Q2:In the get_loss_img2text function, the loss and extra_loss within the if branch do not correspond to those in the else branch.
Q1: 9PB}AMEUHPFA4 B(5RNQF98
Q2: @FK@NYAQ(CN@62O8$QZ~IAY

Hi, Thank you for your interest!

First, I apologize for the raw code presented in the repo, promise I will reformat and add more docstrings.

For the first question, in our real implementation, we seperately train the two branches (Each with 4 GPUs). The get_loss_img2text_image function is the image-only contrastive branch and the get_loss_img2text is the textual alignment branch.

As for the second question, we only train the model using 4 cards thus you can always refer to the if branch. The else branch is only used for debug which can be ignored.

I understand now. Thank you for your response. ^_^

from keds.

Related Issues (1)

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.