Created
August 20, 2019 08:55
-
-
Save AFutureD/799fe3868caa9642bf3930c5568a2d93 to your computer and use it in GitHub Desktop.
Tensor to cv2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img = transforms.functional.to_pil_image(img) | |
img = cv2.cvtColor(np.asarray(img),cv2.COLOR_RGB2BGR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment