fangpin / siamese-pytorch

Implementation of Siamese Networks for image one-shot learning by PyTorch, train and test model on dataset Omniglot
286 stars 62 forks source link

about dataloader's len #11

Open pikeyang opened 3 years ago

pikeyang commented 3 years ago

Hello, I want to know how the 21000 is calculated in mydataset.py?

fangpin commented 3 years ago

by pre-counting the dataset

ravikiranrao commented 2 years ago

@fangpin @pikeyang So, if there are $n$ images, is this equal to $^nC_2$?

pikeyang commented 2 years ago

@ravikiranrao I thing so