A semantic image search engine built with CLIP and FAISS that allows searching by text descriptions or similar images.
- Text-to-Image Search: Find images by describing them in natural language
- Image-to-Image Search: Upload an image to find visually similar ones
- Fast Vector Search: Uses FAISS for efficient similarity search
- Pre-trained AI Model: Leverages OpenAI's CLIP for understanding image content
- Web Interface: Clean, responsive UI built with Flask and Bootstrap
- CLIP: OpenAI's Contrastive Language-Image Pre-training model
- FAISS: Facebook AI Similarity Search for vector similarity search
- PyTorch: Deep learning framework
- Flask: Web application framework
- Bootstrap: Frontend styling
- Clone this repository: git clone https://github.com/shubhrat12/Image-search-engine.git cd image-search-engine
- Create a virtual environment and install dependencies: python -m venv venv source venv/bin/activate pip install -r requirements.txt
- Run the application: python app.py
- Open your browser and go to http://127.0.0.1:5000
- The application uses CLIP to convert images into vector embeddings
- These embeddings capture the semantic meaning of each image
- When searching with text, the query is also converted to the same vector space
- FAISS finds the most similar image vectors to your query vector
- Results are returned based on cosine similarity scores