Closed Purav-Zumkhawala closed 3 years ago
Regarding the training time it took 2 hours to complete 20 epochs on the UFC dataset on my pc with the above-mentioned specs.
We have to keep the strict parameter while loading the pre-trained model as True.
Now for the state_dict error, there were some keys missing and what I figured out is that the pre_trained model had state dict containing keys with 'module.' as prefix so I removed that and now the training happens successfully.
Hi,
I wanted to know how much time would it take to train the UFC101 on the resnet50 pre-trained model same as the last command given in the readme. I have an NVIDIA GeForce 2060 RTX GPU.
Also while loading the model I face RuntimeError: Error(s) in loading state_dict for ResNet: Here is the full error:
I solve this by adding a parameter strict = False. Would this hinder the training? If yes what is the solution for this? I believe this is because of the torch version. Is there a specific torch version required to run this perfectly?
I am asking this as the training starts till 3 epochs the accuracy is 0 only and I think that is abnormal as we are using a pre-trained model.
Please advise.