LiewFeng / imTED

[ICCV 2023] Integrally Migrating Pre-trained Transformer Encoder-decoders for Visual Object Detection
https://arxiv.org/abs/2205.09613
Apache License 2.0
66 stars 8 forks source link

ValueError: imTED: checkpoint path pre/Weights/ is invalid #2

Closed luoyq6 closed 1 year ago

luoyq6 commented 1 year ago

Hello, I would like to consult. I put MAE pre-training weights, but it still gives an error. Could you help me explain it

Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg return obj_cls(**args) File "/dfs/data/imTED/mmdet/models/detectors/imted.py", line 20, in init super(imTED, self).init( File "/dfs/data/imTED/mmdet/models/detectors/two_stage.py", line 48, in init self.init_weights(pretrained=pretrained) File "/dfs/data/imTED/mmdet/models/detectors/two_stage.py", line 68, in init_weights self.backbone.init_weights(pretrained=pretrained) File "/dfs/data/imTED/mmdet/models/backbones/vision_transformer.py", line 132, in init_weights raise ValueError(f"checkpoint path {pretrained} is invalid") ValueError: checkpoint path pre/Weights/ is invalid

LiewFeng commented 1 year ago

You need to modify the path of pre-trained weight in the config file, for example, here.

luoyq6 commented 1 year ago

您需要修改配置文件中预训练权重的路径,例如,此处

It's been fixed, but it's still wrong 1670920383907

LiewFeng commented 1 year ago

It should be 'pre/Weights/mae...pth'.

luoyq6 commented 1 year ago

It should be 'pre/Weights/mae...pth'.

OK,Thanks. I'll try