Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Clarifai dashboard Smart Image Search in the API? #38

Open
emilycestmoi opened this issue Jan 6, 2024 · 4 comments
Open

Comments

@emilycestmoi
Copy link

Hi, I'd like to use the PHP API to do a Smart Image Search like the one that is available on the Clarifai dashboard (see screenshot). I can't seem to find a way to do this in the PHP API. It does seem to be mentioned in the Python API here: https://github.com/Clarifai/clarifai-python#smart-image-search

I'm going to give the Python API a try but I was hoping I could implement this in PHP.

Screenshot 2024-01-05 at 11 25 50 PM

@emilycestmoi
Copy link
Author

I wrote a quick python script to use the Smart Image Search feature (https://github.com/Clarifai/clarifai-python#smart-image-search) and I'm getting the same poor results as I do using the PHP Rank Search, so I'm guessing the functionality is identical.... So the question remains, how is it possible to replicate "Smart Image Search" behavior in the Clarifai dashboard? The API is giving poor results in both PHP and Python, the dashboard search is giving good results, I just want to run the search in the dashboard.
Screenshot 2024-01-06 at 12 39 54 AM
Screenshot 2024-01-06 at 12 37 43 AM

@emilycestmoi emilycestmoi changed the title No Smart Image Search feature for PHP? Only Python? How to use Clarifai dashboard Smart Image Search in the API? Jan 6, 2024
@Alfrick
Copy link

Alfrick commented Jan 8, 2024

You could try out the code samples in this category of the docs. Let me know if you're able to succeed or not.

@emilycestmoi
Copy link
Author

Thanks for the reply. I wasn't able to debug the issue not having access to the backend. I ended up abandoning Clairfai and rolling my own custom solution using weaviate, after which I was able to debug things--I believe the issue is that Clairfai cannot use webp or png data for search inputs. Once I switched to jpg data it worked. Just leaving this here for anyone else who runs into the issue.

@Alfrick
Copy link

Alfrick commented Jan 10, 2024

Ok, thanks for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants