Thanks for the awesome project! However, when I run the experiments_and_evaluation_utk_latest.ipynb file and trained the models myself, I had the following error:
RuntimeError Traceback (most recent call last)
in ()
9 cpu_or_gpu = "cuda" if torch.cuda.is_available() else "cpu"
10 sep_conv_model = SepConvModelMT()
---> 11 sep_conv_model.load_state_dict(torch.load(path_sep_conv, map_location=cpu_or_gpu))
12
13 resnet_model = PretrainedMT(model_name='resnet')
/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
828 if len(error_msgs) > 0:
829 raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
--> 830 self.class.name, "\n\t".join(error_msgs)))
831 return _IncompatibleKeys(missing_keys, unexpected_keys)
832
RuntimeError: Error(s) in loading state_dict for SepConvModelMT:
Missing key(s) in state_dict: "conv_base.conv1.depthwise.weight", "conv_base.conv1.depthwise.bias", "conv_base.conv1.pointwise.weight", "conv_base.conv1.pointwise.bias", "conv_base.batchnorm1.weight", "conv_base.batchnorm1.bias", "conv_base.batchnorm1.running_mean", "conv_base.batchnorm1.running_var", "conv_base.conv2.depthwise.weight", "conv_base.conv2.depthwise.bias", "conv_base.conv2.pointwise.weight", "conv_base.conv2.pointwise.bias", "conv_base.batchnorm2.weight", "conv_base.batchnorm2.bias", "conv_base.batchnorm2.running_mean", "conv_base.batchnorm2.running_var", "conv_base.conv3.depthwise.weight", "conv_base.conv3.depthwise.bias", "conv_base.conv3.pointwise.weight", "conv_base.conv3.pointwise.bias", "conv_base.batchnorm3.weight", "conv_base.batchnorm3.bias", "conv_base.batchnorm3.running_mean", "conv_base.batchnorm3.running_var", "conv_base.conv4.depthwise.weight", "conv_base.conv4.depthwise.bias", "conv_base.conv4.pointwise.weight", "conv_base.conv4.pointwise.bias", "conv_base.batchnorm4.weight", "conv_base.batchnorm4.bias", "conv_base.batchnorm4.running_mean", "conv_base.batchnorm4.running_var", "conv_base.conv5.depthwise.weight", "conv_base.conv5.depthwise.bias", "conv_base.conv5.pointwise.weight", "conv_base.conv5.pointwise.bias", "conv_base.batchnorm5.weight", "conv_base.batchnorm5.bias", "conv_base.batchnorm5.running_mean", "conv_base.batchnorm5.running_var", "conv_base.conv6.depthwise.weight", "conv_base.conv6.depthwise.bias", "conv_base.conv6.pointwise.weig...
Unexpected key(s) in state_dict: "optimizer", "model".