[Python] What does this Error mean in context of anomalies patchcore model

Discussão em 'Python' iniciado por Stack, Abril 1, 2025.

  1. Stack

    Stack Membro Participativo

    Hello Im trying to use Anomalib to train Patchcore model on MvTec dataset but somehow I get a error when starting training that says:

    IndexError: Dimension out of range (expected to be in range of [-1, 0], but got -2)

    Some researchs showed that that PatchCore only accepts one image and I thought the problem was, that Im giving a batch into the model, but after trying a fix with batch_size=1 and squeezing out the batch dimension or iterating through the batch and then passing the model It didn't help at all.

    Anybody experienced the same problem and can guide me on the right way?

    Continue reading...

Compartilhe esta Página