-
Notifications
You must be signed in to change notification settings - Fork 12
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
用预训练模型做微调 #5
Comments
您好,感谢关注。我们当时的代码只为了读取SOLIDER训练的初始化模型,没有适配SOLIDER-REID训练的模型作为初始化。如果你希望用SOLIDER-REID训练的模型(比如swin_small_market.pth)作为初始化,可以把下面代码进行下替换: SOLIDER-REID/model/make_model.py Line 193 in c35c076
替换成下面类似代码:
|
这是因为你训练的数据类别和market不一致,导致classifier参数无法载入。你可以改成如下代码:
|
好的,感谢您!非常棒的工作 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好!
请问怎么样用您的在market上预训练好的模型(swin_small_market.pth)来进行微调呢?
我根据readme的步骤可以用swin_small.pth来微调,但是将MODEL.PRETRAIN_PATH设为swin_small_market.pth会报错
The text was updated successfully, but these errors were encountered: