amazon-science / patchcore-inspection

Apache License 2.0
719 stars 146 forks source link

@authors, How to run this code on multiGPU? #13

Closed MlLearnerAkash closed 2 years ago

Confusezius commented 2 years ago

The code currently does not support multi-gpu usage explicitly, and what you could do depends on what you want to do:

MlLearnerAkash commented 2 years ago

Thanks @Confusezius .

TheWangYang commented 1 year ago

@MlLearnerAkash

hi, I just mofidy this file "bin/patchcore/common.py" from line 14 to 107, specially its inner functions:

I have tried this modification, which allows the faiss library to perform calculations on multiple GPUs.

The functions below are modified by me, include: