oeg1n18/simple-vpr-demo
0
Visual Place Recognition Demo
This is a Visual Place Recognition (VPR) demo using EigenPlaces model. Upload a query image to find similar places in our database of 400+ images from various cities.
How it works
- Upload a query image
- The model extracts visual features from your image
- It compares these features with pre-computed features from 400+ database images
- Returns the most similar matches with similarity scores and location information
Dataset
- Database: 400+ images from various cities
- Cities: Melbourne, Boston, and others
- Metadata: Each image includes place ID, city, and GPS coordinates
Model
- Architecture: EigenPlaces with ResNet50 backbone
- Descriptor Dimension: 2048
- Similarity Metric: Cosine similarity
Usage
- Upload a query image using the interface
- Adjust the number of matches you want to see (1-10)
- Click "Find Matches" to get results
- View the matched images and their metadata
Technical Details
The demo uses:
- EigenPlaces model for visual feature extraction
- Pre-computed descriptors for fast similarity search
- Cosine similarity for matching
- Gradio for the web interface
Files
app.py: Main Gradio applicationmodel.py: Model loading and descriptor computationdataset.py: Dataset handling and ground truth lookupdata/: Contains database images, query images, and ground truth JSON
