IDEA-Research / Grounding-DINO-1.5-API

API for Grounding DINO 1.5: IDEA Research's Most Capable Open-World Object Detection Model Series
https://arxiv.org/abs/2405.10300
Apache License 2.0
588 stars 20 forks source link

assert rsp.status_code == 200 #8

Open EddieEduardo opened 1 month ago

EddieEduardo commented 1 month ago

Hi, thanks for sharing the excellent work !!!

When runing the demo using _python demo.py --token https://deepdataspace.com/request_api_, here raises an error as follows:

File "/Grounding-DINO-1.5-API-master/gdino/model_wrapper.py", line 124, in get_image_url url = self.client.upload_file(image) File "/anaconda3/envs/GDINO/lib/python3.9/site-packages/dds_cloudapi_sdk/client.py", line 68, in upload_file assert rsp.status_code == 200 AssertionError

Could you tell me how to fix the promblem? Thanks in advance.

rentainhe commented 1 month ago

Hello, you should apply for the token id first and replace the --token <token_id> with --token <your special token id>, you should not use the request_api link as your token id