Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'reduction_0.2.weight' #10

Open
Soredhehehe opened this issue Apr 3, 2022 · 0 comments
Open

KeyError: 'reduction_0.2.weight' #10

Soredhehehe opened this issue Apr 3, 2022 · 0 comments

Comments

@Soredhehehe
Copy link

Hi, I run your train.py code with the model named "model_best.pt" to train and got the issue
Traceback (most recent call last):

  File "G:/shenda/project/juesai/MGN-ReId/train.py", line 251, in <module>
    train()
  File "G:/shenda/project/juesai/MGN-ReId/train.py", line 166, in train
    pt_name_path)
  File "G:/shenda/project/juesai/MGN-ReId/train.py", line 97, in restore_model_v2
    value = pt_dict[tf2pt[str(var)]].numpy()
KeyError: 'reduction_0.2.weight'

Maybe I dont't have the pre train model, Could you provide the ptr-train model?
thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant