AlessioGalluccio / FastFlow

an implementation of the architecture of FastFlow (Jiawei Yu et al.)
MIT License
40 stars 13 forks source link

OOM when calculating anomaly_score in testing phase #10

Closed Howeng98 closed 2 years ago

Howeng98 commented 2 years ago

Duplicate of #9

As title mentioned, I get OOM error when my model reach the first meta epoch test set phase in calculating anomaly score. I encounter this error whether using resnet18, DeiT, CaiT. Seem likes @AlessioGalluccio had try to modify calculate anomaly score into the for loop, but still have the problem. I'm using GTX1080 8GB. Is there have any solutions? except decrease the batch size

AlessioGalluccio commented 2 years ago

The batch size of this code is big, I advise reducing it if you have problems