Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

IncompatibleKeys

Open LinchuanXuTheSEAAI opened this issue 2 years ago • 2 comments

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model.

The IncompatibleKeys were produced by running the following cell: ckpt_repo_id = "ShilongLiu/GroundingDINO" ckpt_filenmae = "groundingdino_swinb_cogcoor.pth" ckpt_config_filename = "GroundingDINO_SwinB.cfg.py" groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device)

IncompatibleKeys: _IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids'])

Any solutions for this issue? Thx

LinchuanXuTheSEAAI avatar Jan 04 '24 15:01 LinchuanXuTheSEAAI

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model.

The IncompatibleKeys were produced by running the following cell: ckpt_repo_id = "ShilongLiu/GroundingDINO" ckpt_filenmae = "groundingdino_swinb_cogcoor.pth" ckpt_config_filename = "GroundingDINO_SwinB.cfg.py" groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device)

IncompatibleKeys: _IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids'])

Any solutions for this issue? Thx

Have you solved this problem?

zuonidelaowang avatar Apr 18 '24 10:04 zuonidelaowang

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model. The IncompatibleKeys were produced by running the following cell: ckpt_repo_id = "ShilongLiu/GroundingDINO" ckpt_filenmae = "groundingdino_swinb_cogcoor.pth" ckpt_config_filename = "GroundingDINO_SwinB.cfg.py" groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device) IncompatibleKeys: _IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids']) Any solutions for this issue? Thx

Have you solved this problem?

Have you ever solved this issue? I tested it singlely whereas it was correct. Anyway, it was incorrect while running the demo.

Zhangzhixiang-laugh avatar Oct 12 '24 12:10 Zhangzhixiang-laugh