Transfer learning inquire

I used ResNet34 in training my dataset feom scratch and get acuuracy about 95% I want to exploit this model to train another dataset had a relationships to 1st dataset using transfer learning. Is there a way to make that?

Create a new learner and copy the weights for the starting layers.

new_learn.model[0].state_dict = learn.model[0].state_dict
1 Like