Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model doesn't work on multiprocessing #24

Open
Sparsh-Bansal opened this issue Nov 29, 2021 · 0 comments
Open

Model doesn't work on multiprocessing #24

Sparsh-Bansal opened this issue Nov 29, 2021 · 0 comments

Comments

@Sparsh-Bansal
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant