tianzhuotao / CAC

Apache License 2.0
28 stars 3 forks source link

a error when run #2

Open a5336033 opened 1 year ago

a5336033 commented 1 year ago

Thank you for your excellent work. I encountered an issue when running my code and loading the model. I'm not sure if it's due to a version problem. Can you provide me with some help or suggestions? 07/09 19:46:41 - mmengine - WARNING - The model and loaded state dict do not match exactly

unexpected key in source state_dict: fc.weight, fc.bias

AttributeError: 'tuple' object has no attribute 'dim'

tianzhuotao commented 12 months ago

Thank you for being interested in our work!

Regarding your questions:

  1. "unexpected key in source state_dict: fc.weight, fc.bias"

    • This warning does not affect our model because that is the layer for classification.
  2. "AttributeError: 'tuple' object has no attribute 'dim'

    • You may check your dependency versions or data preparation.