[Question] How do I infer from numpy array/tensor? #2634
-
Hello, I apologize for making this an issue, but the new discussion button seems to be missing. I even checked on another machine. Is there a simple way to infer from a numpy array/tensor and not from file? My datasets are given to me as an x-ray image with multiple objects in this image. We use another model to bounding box and crop out individual items and this stays in memory. If someone could point me in the right direction, I'd greatly appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I believe one is supposed to use the anomalib.deploy.TorchInferencer class for that |
Beta Was this translation helpful? Give feedback.
-
@vmiller987, we have moved to a new org and creating a discussion may be disabled. I'll double check. Regarding the inference, I agree with @sherpan. You could pass your array/tensor to |
Beta Was this translation helpful? Give feedback.
I believe one is supposed to use the
anomalib.deploy.TorchInferencer class for that
https://anomalib.readthedocs.io/en/v2.0.0/markdown/guides/reference/deploy/index.html#anomalib.deploy.TorchInferencer:~:text=3%2C%20224%2C%20224%5D)-,predict(image),-%23