Giter VIP home page Giter VIP logo

mas-pytorch's Issues

Local MAS

Could you tell me how to apply Local MAS?

about classification_head

hi, is the classification_head right in utils/model_class?

class classification_head(nn.Module):
"""

Each task has a seperate classification head which houses the features that
are specific to that particular task. These features are unshared across tasks
as described in section 5.1 of the paper

"""

def __init__(self, in_features, out_features):
	super(classification_head, self).__init__()
	self.fc = nn.Linear(in_features, out_features)

def forward(self, x):
	return x

crash without testing model

When executing main.py, I only find this

The training process on the 0 tasks is completed
Testing the model now
and it crash
WHY?

Issue related to frozen layers

Hello,
I have a question regarding the freeze layers here. I notice that the frozen layers are set to require gradient, in contrast, the not frozen layers don't require gradient. I'm not sure if I understand correctly, but this looks like we actually train frozen layers and ignore the not frozen layers, which is a little unnatural to me. Besides, we still initialize omega for not frozen layers here. Do I miss something? Thanks in advance for your help!

Issues in training and loss/accuracy computation

In the file model_train.py, in the training loop, I see below code in L175-179:

output = model.tmodel(input_data)
_, preds = torch.max(output, 1)
running_corrects += torch.sum(preds == labels.data)
loss = model_criterion(output, labels)

What I understood is model.tmodel is the feature extractor, but yet we are comparing the outputs with target labels. Shouldn't we compare it with the last layer (classifier) output?

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.