© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
11 replies
Максім Ферстапенко Молодший

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?
image.png
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Python code inside c#
C#CC# / help
3y ago
✅ hi guys i have problème with SQL
C#CC# / help
4y ago
✅ hi guys i have problèm with SQL
C#CC# / help
4y ago