You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this tutorial, there is a function preparing the image as below:
`def prep_image(img, inp_dim):
"""
Prepare image for inputting to the neural network.
We use this line to reverse the final dim of img and transpose it: img = img[:,:,::-1].transpose((2,0,1)).copy()
I know that we transpose it because we want the channels in order of RGB. But why should we reverse it first?
The text was updated successfully, but these errors were encountered:
In this tutorial, there is a function preparing the image as below:
`def prep_image(img, inp_dim):
"""
Prepare image for inputting to the neural network.
We use this line to reverse the final dim of img and transpose it:
img = img[:,:,::-1].transpose((2,0,1)).copy()
I know that we transpose it because we want the channels in order of RGB. But why should we reverse it first?
The text was updated successfully, but these errors were encountered: