in @dbliss" answer, you can also use numpy.expand_dims like image = np.expand_dims(image, <your desired dimension>). For example (taken from the link above):
確定! 回上一頁