I have a numpy array (an image) called a with this size:
[3,128,192]
now i want create a numpy array tha
You can use np.repeat methods together with np.newaxis:
import numpy as np test = np.random.randn(3,128,192) result = np.repeat(test[np.newaxis,...], 10, axis=0) print(result.shape) >> (10, 3, 128, 192)