Closed mokii closed 6 years ago
error: File "stringsource", line 345, in View.MemoryView.memoryview.cinit (pydensecrf/densecrf.cpp:7881) ValueError: ndarray is not C-contiguous I use the 2D softmax_to_unary, but get the above error, what is the problem?
Use numpy.ascontiguousarray
numpy.ascontiguousarray
Thanks @reynoldscem, that is correct.
error: File "stringsource", line 345, in View.MemoryView.memoryview.cinit (pydensecrf/densecrf.cpp:7881) ValueError: ndarray is not C-contiguous I use the 2D softmax_to_unary, but get the above error, what is the problem?