GithubHelp home page GithubHelp logo

Comments (3)

chrysts avatar chrysts commented on August 17, 2024

Hi Tong Zhang,

Thanks for your interest in our work. Yes, you are correct that if we only have 1 shot and use exactly one embedded feature, the singular vector cannot be obtained.

In our code, you can see that when the number of shot is 1, we add an augmented sample (in total 2 samples).
Then we run svd with the number of column is two. This is also reflected in the Experiments section of our paper.
Hope this answers your question.

Cheers

from dsn_fewshot.

longspringcity avatar longspringcity commented on August 17, 2024

Thanks for your prompt reply!

I'm still confused about some code details. In the 1-shot case, I printed out self.num_dim from Subspace_Projection.create_subspace() in Conv4/algorithm/subspace_projection.py and found that it is all 0. This causes the return value all_hyper_ planes to be []. Here is my code and the result of running it.

I noticed the use of inverted images to expand the support set at 1-shot, but the key problem is not setting the subspace dimension correctly when the Subspace_Projection class is initialized.

Thanks again for your time and have a great day!
1
2

from dsn_fewshot.

chrysts avatar chrysts commented on August 17, 2024

Hi Tong Zhang,

You can see in train_subspace_discriminative.py > line 61. The subspacedim is set to 1.
Yes, there is a mistake when I initialize the subspaceprojection class. I have edited the line to initialize subspace projection, you can pull or copy from train_subspace_discriminative.py. Thanks for spotting this out!

from dsn_fewshot.

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.