Git Product home page Git Product logo

feature-generating-networks's People

Contributors

abhipanda4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

feature-generating-networks's Issues

Mistake in code

There is a big mistake in the code. The classifiers are trained on a concatenation of image features and the class attributes. Obviously, it should be just the image features.

input for self.final_classifier in Class Trainer contains attribute information?

Hi, Abhipanda4!
Thanks for sharing codes. I find something wrong about the input variables for self.final_classifier in Class Trainer. I think this classifier should't be trained by using any attribute information of unseen classes, otherwise it will violate the zero-shot learning setting. Is that so?

`

def fit_final_classifier(self, img_features, label_attr, label_idx):

    img_features = autograd.Variable(img_features.float()).to(self.device)
    label_attr = autograd.Variable(label_attr.float()).to(self.device)
    label_idx = label_idx.to(self.device)

    X_inp = self.get_conditional_input(img_features, label_attr) **# ?**
    Y_pred = self.final_classifier(X_inp)

    self.optim_final_cls.zero_grad()
    loss = self.criterion_cls(Y_pred, label_idx)
    loss.backward()
    self.optim_final_cls.step()

    return loss.item()

`

gzsl_dataset = real seen dataset?

hello, I am confused with the gzsl_dataset. When train the final classifier, the syn_dataset contain the gzsl_dataset. Dose it mean that gzsl_dataset = real seen dataset?

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.