Closed HenryPengZou closed 2 years ago
Hi @HenryPengZou,
The memory bank is used to store the features for all images and subsequently mine the nearest neighbors for each image (see MemoryBank.update
method. The base_dataset
is used to adopt a different set of augmentations (i.e. validation set augmentations).
I see, thank you~
Hi, thanks for your great work!
I have a question regarding the usage of the memory bank when mining nearest neighbors in the following lines:
https://github.com/wvangansbeke/Unsupervised-Classification/blob/a1fecf288739d0dadde43f24328a8683813e386c/tutorial_nn.py#L54-L65
Can't we directly mine nearest neighbors from
base_dataset
andval_dataset
? Why do we bother to use the memory bank?Thanks a lot for your help in advance.