Closed mrdbourke closed 1 year ago
Might be a CORS issue?
Seems to be happening on the front-end at https://rom1504.github.io/clip-retrieval/ as well:
Is it working for you? It doesn't seem to be fixed yet for me.
No, me neither
I have the same problem. Until yesterday it worked fine
fixed
Thank you!
I still meet this error when I set num_images=1000. How can I solve this ? Thx!!!
@dydxdt I also meet the same issue, can @rom1504 tell us how to solve the problem?
Sure, how many times do you need to call the service?
If you all can provide some information on how you're calling the service, it'll become possible to handle more load that look like what you need
On Mon, Jul 10, 2023, 20:03 Tianhao-Qi @.***> wrote:
@dydxdt https://github.com/dydxdt I also meet the same issue, can @rom1504 https://github.com/rom1504 tell us how to solve the problem?
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1629452855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437VL6LXFT2P2P6NMDALXPQ7YLANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.***>
from clip_retrieval.clip_client import ClipClient, Modality
client = ClipClient(
url="https://knn.laion.ai/knn-service",
indice_name="laion5B-H-14",
aesthetic_score=9,
aesthetic_weight=0.5,
modality=Modality.IMAGE,
num_images=20000,
)
url = "http://p6.storage.canalblog.com/68/98/584238/68087013_q.jpg"
results = client.query(image=url)
print(len(results))
@rom1504 In this way ,I'll get the JSONDecodeError: Expecting value: line 1 column 1 (char 0).
The cause is people are calling the service too much and it's bringing it down. Hence why I'm asking what's your use case
On Wed, Jul 12, 2023, 07:33 Tianhao-Qi @.***> wrote:
from clip_retrieval.clip_client import ClipClient, Modality
client = ClipClient( url="https://knn.laion.ai/knn-service", indice_name="laion5B-H-14", aesthetic_score=9, aesthetic_weight=0.5, modality=Modality.IMAGE, num_images=20000, ) url = "http://p6.storage.canalblog.com/68/98/584238/68087013_q.jpg" results = client.query(image=url) print(len(results))
@rom1504 https://github.com/rom1504 In this way ,I'll get the JSONDecodeError: Expecting value: line 1 column 1 (char 0).
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631876095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437T53XTSBST3X56JLM3XPYZKHANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.***>
Thanks for your reply. So the solution may be to build a search engine on a local machine? If true, could you please tell me the existing instructions that I can follow.
The cause is people are calling the service too much and it's bringing it down. Hence why I'm asking what's your use case … On Wed, Jul 12, 2023, 07:33 Tianhao-Qi @.> wrote: from clip_retrieval.clip_client import ClipClient, Modality client = ClipClient( url="https://knn.laion.ai/knn-service", indice_name="laion5B-H-14", aesthetic_score=9, aesthetic_weight=0.5, modality=Modality.IMAGE, num_images=20000, ) url = "http://p6.storage.canalblog.com/68/98/584238/68087013_q.jpg" results = client.query(image=url) print(len(results)) @rom1504 https://github.com/rom1504 In this way ,I'll get the JSONDecodeError: Expecting value: line 1 column 1 (char 0). — Reply to this email directly, view it on GitHub <#251 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437T53XTSBST3X56JLM3XPYZKHANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.>
There's at least 2 solutions
On Wed, Jul 12, 2023, 08:47 Tianhao-Qi @.***> wrote:
Thanks for your reply. So the solution may be to build a search engine on a local machine? If true, could you please tell me the existing instructions that I can follow.
The cause is people are calling the service too much and it's bringing it down. Hence why I'm asking what's your use case … <#m-2281301921330147586> On Wed, Jul 12, 2023, 07:33 Tianhao-Qi @.> wrote: from clip_retrieval.clip_client import ClipClient, Modality client = ClipClient( url="https://knn.laion.ai/knn-service https://knn.laion.ai/knn-service", indice_name="laion5B-H-14", aesthetic_score=9, aesthetic_weight=0.5, modality=Modality.IMAGE, num_images=20000, ) url = "http://p6.storage.canalblog.com/68/98/584238/68087013_q.jpg http://p6.storage.canalblog.com/68/98/584238/68087013_q.jpg" results = client.query(image=url) print(len(results)) @rom1504 https://github.com/rom1504 https://github.com/rom1504 https://github.com/rom1504 In this way ,I'll get the JSONDecodeError: Expecting value: line 1 column 1 (char 0). — Reply to this email directly, view it on GitHub <#251 (comment) https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631876095>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437T53XTSBST3X56JLM3XPYZKHANCNFSM6AAAAAAVLQMFD4 https://github.com/notifications/unsubscribe-auth/AAR437T53XTSBST3X56JLM3XPYZKHANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.>
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631943940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437S5DEBGPYDBTMTU3P3XPZCBHANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.***>
Actually, I want to search images given one image URL at billion scales to support my research.
https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631948889
So that's only a single query or thousands of similar ones ? Any pattern ?
On Wed, Jul 12, 2023, 09:12 Tianhao-Qi @.***> wrote:
Actually, I want to search images given one image URL at billion scales to support my research.
251 (comment)
https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631948889
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631972211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SAZ7IK74X644N576LXPZE65ANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.***>
I wanna get 10k~100k images through a single query.
So that's only a single query or thousands of similar ones ? Any pattern ? … On Wed, Jul 12, 2023, 09:12 Tianhao-Qi @.> wrote: Actually, I want to search images given one image URL at billion scales to support my research. #251 (comment) <#251 (comment)> — Reply to this email directly, view it on GitHub <#251 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SAZ7IK74X644N576LXPZE65ANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.>
I wanna get 10k~100k images through a single query.
So that's only a single query or thousands of similar ones ? Any pattern ? … On Wed, Jul 12, 2023, 09:12 Tianhao-Qi @.**> wrote: Actually, I want to search images given one image URL at billion scales to support my research. #251 (comment) <#251 (comment)> — Reply to this email directly, view it on GitHub <#251 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SAZ7IK74X644N576LXPZE65ANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.**>
+1
How many queries
The fewer information you provide the less likely we can find a solution
On Thu, Jul 20, 2023, 15:13 Iheb Belgacem @.***> wrote:
I wanna get 10k~100k images through a single query.
So that's only a single query or thousands of similar ones ? Any pattern ? … <#m6587339981003085040> On Wed, Jul 12, 2023, 09:12 Tianhao-Qi @.*> wrote: Actually, I want to search images given one image URL at billion scales to support my research.
251 https://github.com/rom1504/clip-retrieval/issues/251 (comment) <#251
(comment) https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631948889> — Reply to this email directly, view it on GitHub <#251 (comment) https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1631972211>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SAZ7IK74X644N576LXPZE65ANCNFSM6AAAAAAVLQMFD4 https://github.com/notifications/unsubscribe-auth/AAR437SAZ7IK74X644N576LXPZE65ANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @*.>
+1
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/251#issuecomment-1643904509, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SCEDIOFWNDWXXIITLXREVHLANCNFSM6AAAAAAVLQMFD4 . You are receiving this because you were mentioned.Message ID: @.***>
Hi there,
Thank you for the incredible package!
I'm trying to run the demo notebook: https://colab.research.google.com/github/rom1504/clip-retrieval/blob/master/notebook/clip-client-query-api.ipynb
And after running the cell:
I'm getting the error:
Potentially something is offline?