EfficientAD icon indicating copy to clipboard operation
EfficientAD copied to clipboard

Asking why use batch size =1 ......? Please...help

Open yujins02 opened this issue 2 years ago • 4 comments

Why use batch size =1 ? What is for it? train_loader = DataLoader(train_set, batch_size=1, shuffle=True, num_workers=4, pin_memory=True) train_loader_infinite = InfiniteDataloader(train_loader) validation_loader = DataLoader(validation_set, batch_size=1)

yujins02 avatar Aug 07 '23 16:08 yujins02

This batch size is specifically mentioned in the paper, and it is necessary to use size 1 for training EfficientAD. For validation, it's also 1 because of how this implementation works, but it can be a different number if you change the code.

abc-125 avatar Sep 27 '23 10:09 abc-125

what if batch size > 1 in the train process?

PHaiJun avatar Dec 29 '23 02:12 PHaiJun

because it need 10Gb+ memory when training by one

Kaze816 avatar Feb 25 '24 06:02 Kaze816

what if batch size > 1 in the train process?

maybe out of memory size.

Kaze816 avatar Feb 25 '24 06:02 Kaze816