Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Office 20% samples only achieved 0.86 accuracy #1

Open
Jensen-Su opened this issue Jan 8, 2018 · 0 comments
Open

Office 20% samples only achieved 0.86 accuracy #1

Jensen-Su opened this issue Jan 8, 2018 · 0 comments

Comments

@Jensen-Su
Copy link

Jensen-Su commented Jan 8, 2018

As a quick reproduction, I simply added the following class to file model_multi_task.py:

class AlexnetNoFc(nn.Module):
    def __init__(self):
        super(AlexnetNoFc, self).__init__()
        alexnet = models.alexnet(pretrained=True)
        self.features = alexnet.features
        self.classifier = nn.Sequential()
        for i in xrange(6):
            self.classifier.add_module("classifier" + str(i), alexnet.classifier[i])
        self.extract_feature_layers = nn.Sequential(self.features, self.classifier)
        self.in_features = alexnet.classifier[6].in_features

    def forward(self, x):
        x = self.features(x)
        x = x.view(x.size(0), -1)
        x = self.classifier(x)
        return x

    def output_num(self):
        return self.in_features

Then I changed the model in train_multi_task.py from vgg16no_fc to alexnetno_fc and uncommented the commented statements in model_multi_task.py to use the other two covariance. Also, I changed "lr" in code

parameter_dict = [{"params":self.shared_layers.module.parameters(), "lr":0}]

to 1 to enable finetuning.

Then I trained the model using train_20.txt and test_20.txt of Office datasets. But I only got 0.86 accuracy, worse then single-task training and far from 0.94 reported in the paper. Did I missing anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant