IDEA-Research / T-Rex

[ECCV2024] API code for T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergy
https://deepdataspace.com/blog/T-Rex
Other
2.28k stars 147 forks source link

Requesting customize_embedding api failed without any error message #51

Closed ZZfive closed 7 months ago

ZZfive commented 7 months ago

Using the token obtained through email, I can successfully execute "python demo_examples/generic_inference.py --token ", but "python demo_examples/customize_embedding.py --token " always fails. The error message is as follows, and there is no error message. image

Mountchicken commented 7 months ago

Hi @ZZfive I just updated the code and please pull the newest code. It should work fine now.

ZZfive commented 7 months ago

Hi @ZZfive I just updated the code and please pull the newest code. It should work fine now.

Thanks for your response! After I pull latest code, I successfully executed "python demo_examples/customize_embedding.py --token ", return the url of the embedding model

ZZfive commented 7 months ago

Hi @Mountchicken The "python demo_examples/customize_embedding.py --token " mentioned above was executed successfully, Only the token was set without any modification. However, when the prompt_image set in prompts was set to a local image, the request still failed, the output is as follows:

image

When the above failed, 8 pictures were set in prompts, and then the pictures were reduced to 4. The request was successful and the url of the embedding model was returned. Are there any specific restrictions on the number and size of images when requesting customize_embedding?

Mountchicken commented 7 months ago

The maximum number of images for customize_embedding API is 4, and we do not restrict the image size.

ZZfive commented 7 months ago

The maximum number of images for customize_embedding API is 4, and we do not restrict the image size.

Is the maximum number of images for all API 4, such as generic_inference and interactve_inference?

Mountchicken commented 7 months ago

Yes