GroundingDINO icon indicating copy to clipboard operation
GroundingDINO copied to clipboard

Error Detection with unexpected labels: [CLS]and[SEP]

Open littlecay opened this issue 1 year ago • 2 comments

I use offlinemode, and
config_file = 'D:/deeplearning/Grounded-Segment-Anything-main/GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py' # change the path of the model config file checkpoint_path = 'D:/deeplearning/Grounded-Segment-Anything-main/bert-base-uncased/groundingdino_swint_ogc.pth' # change the path of the model image_path = 'D:/deeplearning/Grounded-Segment-Anything-main/1.jpg' text_prompt = 'chair' output_dir = 'D:/deeplearning/Grounded-Segment-Anything-main/output' like this, in inference_on_a_image.py. However, the output results seems random. New labels like [CLS][SEP] apprear. 出现了很多的乱码标签[CLS][SEP]经查似乎与bert有关,且每次结果都是随机的 pred Anyone have any ideas? Thanks

littlecay avatar May 10 '24 02:05 littlecay

Hi,

See https://github.com/IDEA-Research/GroundingDINO/issues/321 for easy inference

NielsRogge avatar Jun 01 '24 09:06 NielsRogge

yeah, I've deal with this successfully, but still wondering why did this happens? Seems like caused by an abusing of wrong pth?

littlecay avatar Jun 04 '24 03:06 littlecay