We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was a bit confused by the lines 62,63 in your code line 62
Seems like you are converting from numpy to tensor, back to numpy, and then back to tensor. Wouldn't there by an easier way to do this?
image = transforms.ToTensor()(image) image = torch.tensor(np.array([image.numpy()]))
Would this achieve the same?
image = torch.tensor(np.expand_dims(np.rollaxis(image,2)/255.0, -1))
Also is the first dimension of the image, batch? Could we technically pass multiple images here?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was a bit confused by the lines 62,63 in your code line 62
Seems like you are converting from numpy to tensor, back to numpy, and then back to tensor. Wouldn't there by an easier way to do this?
Would this achieve the same?
Also is the first dimension of the image, batch? Could we technically pass multiple images here?
The text was updated successfully, but these errors were encountered: