GithubHelp home page GithubHelp logo

Comments (6)

hytseng0509 avatar hytseng0509 commented on August 29, 2024

You can refer to the implementation in methods/backbone.py and methods/LFTNet.py.

from crossdomainfewshot.

dori2063 avatar dori2063 commented on August 29, 2024

Hi, thank you for sharing your efforts.
I tried to understand the eq.(6) and (7) through your code, but i guess failed.
As i understand "ft_loss" calculated without ft layers in methods/LFTNet.py-line137.
And the line138 tries to calculate and update the gradients of the ft layers.
However, as I know it is not possible because the ft layer was not used.
How can it possible to calculate the gradients of ft layer?

from crossdomainfewshot.

dori2063 avatar dori2063 commented on August 29, 2024

Thanks to your response in the openreview, I guess understood. Thank you!

from crossdomainfewshot.

lianglele185 avatar lianglele185 commented on August 29, 2024

c=

Thanks to your response in the openreview, I guess understood. Thank you!

can you explain why the ft layer can be updated without using it

from crossdomainfewshot.

dori2063 avatar dori2063 commented on August 29, 2024

The ft layer is not used for pu, while the ft layer used for ps is used for pu. (In the end, ft layer is used for pu.)
In https://openreview.net/forum?id=SJl5Np4tPr, the author's sentence "the updated model used to calculate~" made me understand. You can think about it with how defined and used "self.ft_optim" in methods/LFTNet.py.

from crossdomainfewshot.

LavieLuo avatar LavieLuo commented on August 29, 2024

Hi, thank you for sharing this information. It confuses me so much.

The ft layer is not used for pu, while the ft layer used for ps is used for pu. (In the end, ft layer is used for pu.)

After reading your reply, I guess it can be understood by "the ps and up share a single ft layer (i.e., the same parameter $theta_f$), which is only optimized on pu"?

from crossdomainfewshot.

Related Issues (20)

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.