Use EfficientAD with large datasets in a 12gb vram gpu. #1670
-
Hi guys, I'm kinda new in training models but after 2 weeks I couldn't train efficientAD using a large dataset, only small ones. How do you do it when you face a large number of images? Here is my config file:
I get CUDA error because I don't have enought VRAM in the GPU. I have tried everything, lowering batch size, num_workers but the result is the same. Any help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Does it crash early into the process or later in training? I think that EfficientAD shouldn't have problems with training on smaller GPUs. What could be causing problems though are metrics, since they store large amount of data if your dataset is big. In any case, it'd be good to know at which point exactly the issue appears. |
Beta Was this translation helpful? Give feedback.
If I remember correctly this was introduced after 0.7.0, but since the main branch is now on v1, you can just change the code for the teacher mean by hand to this:
https://github.com/openvinotoolkit/anomalib/blob/main/src%2Fanomalib%2Fmodels%2Fimage%2Fefficient_ad%2Flightning_model.py#L152-L189