Patrice:

data = np.zeros((old_data.shape[0],3,old_data.shape[2],old_data.shape[3])) for i in range(old_data.shape[0]): a = old_data[i] a = np.resize(a, (3,old_data.shape[2],old_data.shape[3])) data[i,:,:] = a


Dear sir,
I am very grateful for your reply.
I have tried to resize my data as follows so that it could meet the input requirements stated in the tutorial. Please any suggestions on that?