Negative strides are currently not supported yet.
You could fix this error by calling
np.ascontiguousarray(img_.transpose(2,0,1)[np.newaxis,:])

in your preprocess function.
This will make the array contiguous again and get rid of the negative strides.