How can change a .pt file?

Hello, I am working on a pre-trained model. The model’s weights and biases are loaded from a .pt file and I get the following error. Can you help me? Thanks.

RuntimeError: Error(s) in loading state_dict for Network:
size mismatch for fc.0.weight: copying a param with shape torch.Size([1600, 9]) from checkpoint, the shape in current model is torch.Size([1600, 55]).
size mismatch for fc.6.weight: copying a param with shape torch.Size([9, 400]) from checkpoint, the shape in current model is torch.Size([55, 400]).
size mismatch for fc.6.bias: copying a param with shape torch.Size([9]) from checkpoint, the shape in current model is torch.Size([55]).

The shapes of a few parameters mentioned in the error message does not match which points to a change in the model architecture. Where did you get the checkpoint from and which model are you creating?

Thanks for answer.

This DNN model is for chemical combusiton. I want to use it.

Model input size :9 but my input size:55

There is a weights an biases “model.pt” file in project.

I want to change input paramters for my “.yaml” inputs.

Load the checkpoint before manipulating the model and changing the number of features.