Hey , seregil,
In the preprocess_image function ,you described changing the image dim from (N,H,W,C) to (N,C,H,W) , but the below code only reversing the channels only (FROM BGR to RGB)
`# Make image scaling + BGR2RGB conversion + transpose (N,H,W,C) to (N,C,H,W)
for i in range(3):
im_tensor[0, :, :, i] = (img[:, :, 2 - i] / pixel_scale - pixel_means[2 - i]) / pixel_stds[2 - i]`
Is it a mistake or written purposely ?
Kindly correct me if i am wrong.
Hey , seregil, In the preprocess_image function ,you described changing the image dim from (N,H,W,C) to (N,C,H,W) , but the below code only reversing the channels only (FROM BGR to RGB)
`# Make image scaling + BGR2RGB conversion + transpose (N,H,W,C) to (N,C,H,W)
Is it a mistake or written purposely ? Kindly correct me if i am wrong.