Last active
July 13, 2020 11:47
-
-
Save Saafke/27fd88d9f3c3d9b9fbaabad84e035797 to your computer and use it in GitHub Desktop.
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
# Read the desired model | |
path = "EDSR_x3.pb" | |
sr.readModel(path) | |
# Set CUDA backend and target to enable GPU inference | |
sr.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) | |
sr.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA) | |
#etcetera.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment