Giter Site home page Giter Site logo

Comments (4)

linyq17 avatar linyq17 commented on May 29, 2024 1

To adapt few-shot inference, forwarding support images and labels is enough. The model.before_forward_support() will handle them according to their labels. Also, the labels should in the range(0, number of classes).

from mmfewshot.

rlleshi avatar rlleshi commented on May 29, 2024

Hi @linyq17

It's actually not working like that. I am forwarding a couple of support images and labels using process_support_images() but only the last forwarded images are being used to build the support features and labels.

In other words, if forwarding two different sets of support images, set-1, and set-2 (in this order), the results of the inference will be the selfsame as if forwarding only the latter set-2.

As already mentioned above, this seems to me to be the case because in before_forward_support() for meta_baseline_head we are resetting the support features.

from mmfewshot.

linyq17 avatar linyq17 commented on May 29, 2024

It seems the process_support_images was called multiple times. Each time this function will reset the head and the code is in here. If the support images need to be passed multiple times, this line of code needs to be modified.

from mmfewshot.

rlleshi avatar rlleshi commented on May 29, 2024

Exactly. I had modified only that and I got different results. But wanted to confirm once. Thanks.

before_forward_query() (for meta baseline) on the other hand need not be modified.

from mmfewshot.

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.