-
Hi there! I'm trying to run my own gland segmentation model with fast pathology. I convert my torch model into .onnx and now I want to see the predictions in the whole slide. I write the following script:
And returns me the following error:
I supposed that NeuralNetwork is trying to read the second axis assuming that my model output is something like [-1, 2, patchsize, patchsize], however it only has one output channel, like [-1, 1, patchsize, patchsize]. So I try to set the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't understand why you get a " SWIG director method error" since you are not using any custom python process objects (fast.PythonProcessObject). However, looking at your code I see that you are using fast.NeuralNetwork, while you should instead use fast.SegmentationNetwork here. Here is a tutorial on this topic: https://fast.eriksmistad.no/python-tutorial-wsi.html#autotoc_md173 |
Beta Was this translation helpful? Give feedback.
Thanks for your quick response! I have noticed that the error was from a previous script witch uses a python process object, but that reference help me to run it, thanks!