You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would really like to get the scores for the segmentation mask. I don't care about the entire ndarray, just the scores for the most probable class.
Looking at this issue I understand there is no way to get that at the moment in python.
So.. I thought I'd add it myself. But since it's been a while since I did any C++ coding I ran into some issues.
I made some minor changes to segNet.cpp anad segNet.h
I want to add ScoreMask to SegNet and I thought I could just save the scores alongside argmax calculation in the classify method and then expose it through a new function. Compiles fine, but can't get the attribute to show in the python SegNet object.
And then did the cmake and make. Everything compiles, no errors.
But when I try to call the newly created ScoreMask I get *** AttributeError: 'jetson.inference.segNet' object has no attribute 'ScoreMask'
error.
What am I missing? Any help would be much appreciated.
The text was updated successfully, but these errors were encountered:
But, I'd still like someone to tell me if that is the right way to do it.
Especially with the float conversion from C++ to Python - should this be fine?
I would really like to get the scores for the segmentation mask. I don't care about the entire ndarray, just the scores for the most probable class.
Looking at this issue I understand there is no way to get that at the moment in python.
So.. I thought I'd add it myself. But since it's been a while since I did any C++ coding I ran into some issues.
I made some minor changes to segNet.cpp anad segNet.h
I want to add
ScoreMask
to SegNet and I thought I could just save the scores alongside argmax calculation in theclassify
method and then expose it through a new function. Compiles fine, but can't get the attribute to show in the python SegNet object.Changes to segNet.cpp
and then segNet.h
PySegNet.cpp
And then did the cmake and make. Everything compiles, no errors.
But when I try to call the newly created ScoreMask I get
*** AttributeError: 'jetson.inference.segNet' object has no attribute 'ScoreMask'
error.
What am I missing? Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: