Model doesn't work on multiprocessing
Sparsh-Bansal opened this issue · 0 comments
Sparsh-Bansal commented
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).