DeepHash-pytorch
DeepHash-pytorch copied to clipboard
Explanation why to use cifar10-2
![image](https://user-images.githubusercontent.com/24797359/232637117-944e383a-4f98-4b74-ac63-d1816c8e7773.png)
When we test our model, we assume that it corresponds to a real-world situation when we can train seen database before making unseen queries. Therefore we can include the train set in the database set. However, in the case of NUS and COCO classes of datasets are not balanced. We have no guarantee that we have 193734//21=9225 images of every class. Empirically, I have found that in nuswide_21 code.py we can set train_num up to ~2100. I do not know why someone decided to put only 500 per class, but I definitely know that Train <= Database. Thus, we have 3 scenarios:
- CIFAR is balanced, therefore we can use Train = Dataset
- NUS: we try to balance, therefore we Train <= Dataset
- COCO: we do not balance (too hard?), Train <= Dataset