-
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
KeyError: 'bottleneck.weight' #9
Comments
您好,方便把您修改后的self.state_dict()[i].copy_(param_dict[i])所在函数的代码贴一下么? |
make model.py line 190
|
这个是self.state_dict()的keys,里面全是base xxx,没有bottleneck |
您好,这是由于bottleneck的layer是在后面创建的,把添加的这段代码,即
放到下面代码后面即可。 SOLIDER-REID/model/make_model.py Lines 222 to 226 in 8c08e1c
|
可以了,但是又有个新的问题:
|
您看下是不是您读取数据的train_loader出了问题,导致没有进入下面这个for循环。 SOLIDER-REID/processor/processor.py Line 51 in 8c08e1c
|
不过确实是没有进到loop里,我在排查为什么 |
找到原因了,因为我一共就三个图片,但是batchsize是64,把batchsize降到3就可以了,谢谢大佬 |
在尝试用自己的数据finetune,加载了MSMT17的预训练模型。用的指令如下
python train.py --config_file TIL.yml MODEL.PRETRAIN_CHOICE 'self' MODEL.PRETRAIN_PATH 'swin_base_msmt17.pth' OUTPUT_DIR './log' SOLVER.BASE_LR 0.0002 SOLVER.OPTIMIZER_NAME 'SGD' MODEL.SEMANTIC_WEIGHT 0.2
yml文件
已经根据#5 (comment) 替换了代码
The text was updated successfully, but these errors were encountered: