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
When I inferred with the same image of culane with python and cpp, python result was correct but cpp result was wrong, then I read the cpp inference code and find there were so many mistakes in the cpp inference code with libtorch,such as:
image process: python code was normalized with imagenet mean and std, but cpp was not;
the arange idx in here was inconsistent with python;
the axis of sum op here after softmax and multiply with arange idx was wrong;
the decode of xy coordinate was wrong here: it should be loc instead of outputTensor, loc was the correct result but outputTensor is just the result of argmax;
Perhaps there are other errors in the cpp code.
The text was updated successfully, but these errors were encountered:
When I inferred with the same image of culane with python and cpp, python result was correct but cpp result was wrong, then I read the cpp inference code and find there were so many mistakes in the cpp inference code with libtorch,such as:
loc
instead ofoutputTensor
,loc
was the correct result butoutputTensor
is just the result of argmax;Perhaps there are other errors in the cpp code.
The text was updated successfully, but these errors were encountered: