#Did ayn of you had this weird problem??
############################################
import dlib
print(dlib.DLIB_USE_CUDA)
cnn_face_detector = dlib.cnn_face_detection_model_v1(‘mmod_human_face_detector.dat’)
import torch
print(torch.rand(4))
#OSError: [WinError 127] The specified procedure could not be found. Error loading #“C:\Python38\lib\site-packages\torch\lib\cudnn_adv_train64_8.dll” or one of its dependencies.
######################  while there is no problem if torch is imported first:)
import torch
print(torch.rand(4))
import dlib
print(dlib.DLIB_USE_CUDA)
cnn_face_detector = dlib.cnn_face_detection_model_v1(‘mmod_human_face_detector.dat’)
#this works without any problems as:
#>tensor([0.1777, 0.0763, 0.1909, 0.5742])
#>True