Replies: 2 comments 5 replies
-
After downloading the pre-train model, did you do anything else to the model? Could you also provide your download link? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please try this pre-train model: https://download.openmmlab.com/mmselfsup/1.x/mae/mae_vit-base-p16_8xb512-fp16-coslr-1600e_in1k/mae_vit-base-p16_8xb512-fp16-coslr-1600e_in1k_20220825-f7569ca2.pth The model you mentioned might have some problem, I will check it again |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to use the downloaded pretrained MAE model to run the downstream object detection task , but it raised error and couldn't run.
The command I used is:
"
bash tools/benchmarks/mmdetection/mim_dist_train_c4.sh configs/benchmarks/mmdetection/voc0712/faster_rcnn_r50_c4_mstrain_24k_voc0712ls.py /home/ls/mmselfsup/checkpoints/mae_vit-base-p16_8xb512-coslr-400e-fp16_in1k_20220825-bc79e40b.pth 1
"
The error It raised is that:
"
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmdet/.mim/tools/train.py", line 120, in
main()
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmdet/.mim/tools/train.py", line 116, in main
runner.train()
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1621, in train
self._init_model_weights()
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/runner/runner.py", line 872, in _init_model_weights
model.init_weights()
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/model/base_module.py", line 114, in init_weights
m.init_weights()
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/model/base_module.py", line 103, in init_weights
initialize(self, self.init_cfg)
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/model/weight_init.py", line 607, in initialize
_initialize(module, cp_cfg)
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/model/weight_init.py", line 515, in _initialize
func(module)
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/model/weight_init.py", line 497, in call
state_dict = _load_checkpoint_with_prefix(
File "/home/ls/anaconda3/envs/mmselfsupv1/lib/python3.8/site-packages/mmengine/runner/checkpoint.py", line 514, in _load_checkpoint_with_prefix
assert state_dict, f'{prefix} is not in the pretrained model'
AssertionError: backbone. is not in the pretrained model
Killing subprocess 19384
"
The config I used had been used for training the pretrained SimMIM model, and it could run successfully, I don't know why MAE couldn't work.
May I get some advice about how to fix it? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions