image-retrieval-transformers icon indicating copy to clipboard operation
image-retrieval-transformers copied to clipboard

Particular Object Retrieval

Open mennanyang opened this issue 1 year ago • 3 comments

You have implemented Category-level Retrieval. Have you considered implementing a Particular Object Retrieval? Thank you!

mennanyang avatar Aug 08 '23 07:08 mennanyang

Hello.

Currently, we don't have any plans to implement instance-level image retrieval.

Thank you.

jhgan00 avatar Aug 17 '23 01:08 jhgan00

@jhgan00 What should I do to build an instance-level retrieval? Is it possible to build it with your code?

vpvsankar avatar Sep 12 '23 09:09 vpvsankar

The most important thing is to implement the process of preparing and loading the dataset. Currently, the __getitem__ method returns a tuple of one image and its label. However, the author mentions that for the particular object retrieval task, they sample 2,000 positive pairs and 22,000 negative candidates through hard-negative mining at each epoch. Each batch consists of five tuples, which include one anchor, one positive, and five negatives. I believe this part should be implemented in the dataset.

We report results for image sizes of 224×224 and 384×384. For finetuning, each batch consists of 5 tuples of (1 anchor, 1 positive, 5 negatives). For each epoch, we randomly select 2,000 positive pairs and 22,000 negative candidates (using hard-negative mining). We use the default hyper-parameters of Radenovic et al. ´ (2018b): the models are optimized using Adam (Kingma & Ba, 2015) with small learning rate of 5.10−7 and weight decay of 10−6. The contrastive loss margin is set to β = 0.85. The models are finetuned for 100 epochs.

jhgan00 avatar Sep 13 '23 03:09 jhgan00