Comments (1)
Hi, welcome to the image retrieval community! I couldn't give you a concrete script for this (also good for you to practice and more time for me to relax;) ). But in your case, here are the probable steps you could follow, which won't be hard or rather it is super easy:
- I don't recommend using our pipeline with parameter in console. Instead, try to build your own pipeline, but with some of my codes as the tools - if you are also new in python then a jupyter might be your choice.
- Construct a Dataset object in torch to cover your query and index datasets.
- Initialize the model (Grabbed from our code) with your pre-trained weights loaded.
- Refer to
extract_feature
inhttps://github.com/ShihaoShao-GH/SuperGlobal/tree/main/test/test_utils.py
for extracting the global feature for both query and index. - Now, you will have two tensors of global features, where one in shape (#query, dims) and (#index, dims).
- Do dot product between them, which gives (#query, #index). Then do
torch.argsort(descending=True)
. You will get the sorted ordered of index for similarity from high to low for a given query.
For the grid search, our paper indicates there is a strong consistency in different datasets for our searching results. So you can directly use them.
from superglobal.
Related Issues (17)
- Do you have any idea to publish the training codes? HOT 1
- how to train model on my own data HOT 1
- Score gap for +1m datasets HOT 8
- Hello, could you please provide SuperGlobal training scripts and tutorials? Thank you HOT 1
- Issue Replicating SuperGlobal Results: "Override list has odd length" Error HOT 2
- Dataset issue HOT 1
- Code HOT 1
- Training CVNET Backbone With GeM+, Regional-GeM, Scale-GeM
- ไปฃ็ ็้ฎ HOT 1
- code for CVnet training HOT 1
- Re-ranking network HOT 3
- Reranking network HOT 1
- about DELG-pytouch HOT 2
- Understand the reordering network HOT 2
- GLDv2 test performance reproduction HOT 1
- how to set GeM when training?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superglobal.