I test task1’s acc after resume model. And accuracy value match to resume file at first. But after some iterations of training , task1’s accuracy has changed. Don’t know what’s wrong about training. I think fix backbone and task1 parameters should get always the same task1’s accuracy .
code of fix backbone and task1 parameters:
for p in self.model.parameters():
p.requires_grad = False
for q in self.model.task2.parameters():
q.requires_grad = True