hcw-00 / PatchCore_anomaly_detection

Unofficial implementation of PatchCore anomaly detection
Apache License 2.0
320 stars 92 forks source link

self.index.search(embedding_test, k=args.n_neighbors) kills the process #38

Open oezguensi opened 2 years ago

oezguensi commented 2 years ago

I think it overflows the memory?!

Mirage2000i commented 5 months ago

After "Getting transformed features...", I also encountered the "killed" error. I think I was using Python 3.8 at that time, but finally I changed the version to 3.6 and it worked. More importantly, it's the interdependency between PyTorch, PyTorch-Lightning, and TorchMetrics. I don't know why.