Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I also tried np.random.rand(1, 50, 50, 1) (see the question). No luck :(. Do you have any other ideas? I really need this to start working. Thank you!

I also tried np.random.rand(1, 1, 50, 50, 1)50) (see the question). No luck :(. Do you have any other ideas? I really need this to start working. works! Thank you!

After being hinted by @Berak, that the input should be 4 dimensional, I found out, that

image = np.random.rand(1, 1, 50, 50)50)
 works! Thank you!

works just fine!