I guess you want to access the features for a particular image / input. If so:
you need to know the model of that is associated with the weights (your MyModel)
load the weights into your model.
Pass the input / image trough the backbone
Extract the elements of the backbone at the different stages (for example, the result of self.layer1(x), self.layer2(x), … self.layer4(x)
The pytorch tutorials are really nice and should introduce the main concepts for the steps above. If the model in indeed a tensorflow model, you need to work with tensorflow not pytorch.
My code is in pytorch and I want to compute perceptual loss by extracting deep features from this model and add it to my loss function. I think it is not adequate to use pytorch and tensorflow together in the same code.