paq2piq icon indicating copy to clipboard operation
paq2piq copied to clipboard

Model doesn't work on multiprocessing

Open Sparsh-Bansal opened this issue 2 years ago • 0 comments

model = InferenceModel(RoIPoolModel(), 'models/RoIPoolModel.pth') output = model.predict_from_file("images/Picture1.jpg")

Model gives different scores on running the script for the same image two times in multithreading , that is a big problem. Ideally it should give same scoring at every run (with multithreading/multiprocessing).

Sparsh-Bansal avatar Nov 29 '21 08:11 Sparsh-Bansal