abhipanda4 / feature-generating-networks Goto Github PK
View Code? Open in Web Editor NEWZero Shot Learning with Feature Generating Networks
Zero Shot Learning with Feature Generating Networks
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.
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()
`
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?
Hi, can I train with custom dataset?
How can I create res101.mat & att_splits.mat files?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.