amazon-science / patchcore-inspection

Apache License 2.0
779 stars 154 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:

hamfrysl commented 1 month ago

@TheWangYang Thanks for sharing the update to the common.py script. Can you also share what else you have changed to train on multiple GPUs? Ideally would be great to point to a repo with the updated files, if possible.