IDEA-Research / T-Rex

API for T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergy
https://deepdataspace.com/home
Other
1.98k stars 120 forks source link

Requesting customize_embedding api failed without any error message #51

Closed ZZfive closed 2 months ago

ZZfive commented 2 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 2 months ago

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

ZZfive commented 2 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 2 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 2 months ago

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

ZZfive commented 2 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 2 months ago

Yes