Hi guys i have a problem with my c# - python code!
I have a code for image recognizing. It works fine in my vs code. Heres a screenshot
And this code works fine in visual studio in python solution. But when I try to run it inside my c# code it does not work. My model is loading properl;y and path to my file is fine too. Libraries connects also in proper way. I run this code using pythonnet inside c#. But my code stops on that line "prediction = model.predict(processed_image)" with that error. Mb someone knows how to fix it or have a solution?
And this code works fine in visual studio in python solution. But when I try to run it inside my c# code it does not work. My model is loading properl;y and path to my file is fine too. Libraries connects also in proper way. I run this code using pythonnet inside c#. But my code stops on that line "prediction = model.predict(processed_image)" with that error. Mb someone knows how to fix it or have a solution?



