Skip to content

Prediction on CPU #117

Answered by Abe404
Amalkas asked this question in Q&A
Sep 19, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hi,

I have updated the code (on the master branch) to handle CPU inference.

The changes are visible here: https://github.com/Abe404/root_painter/compare/78eda63ccf589241b988bba20e68bccab2f96390..6c4f7c8c5d18905bc62455e74f1924029d27a50b (also including an update to handle more recent versions of PIL image library).

I tested with images with width of 762 and height of 392 (pixels) and it took less than 5 seconds per image for inference.

Much larger images will take much longer.

Please let me know if this solves the problem for you.

Working with this updated code requires installing the server by cloning/downloading the git repo. Let me know if you run into trouble with that.

Kind regards,
A…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Amalkas
Comment options

Comment options

You must be logged in to vote
1 reply
@Amalkas
Comment options

Answer selected by Amalkas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants