报错:caffe2_detectron_ops_gpu.dll“/cudnn_cnn_infer64_8.dll“ or one of its dependencies.

报错:caffe2_detectron_ops_gpu.dll"/cudnn_cnn_infer64_8.dll" or one of its dependencies.

报错:
1.
OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “D:\software\Anaconda\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll” or one of its dependencies.
2.
OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “D:\software\Anaconda\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\cudnn_cnn_infer64_8.dll” or one of its dependencies.

解决办法:
调小batch_size

# batch_size = 16 #报错
batch_size = 4  #正常运行
nw = min([os.cpu_count(), batch_size if batch_size > 1 else 0, 8])
print('Using {} dataloader workers every process'.format(nw))

参考:
OSError: [WinError 1455] 页面文件太小,无法完成操作。

认真是一种态度更是一种责任

你可能感兴趣的:(总结,pytorch,pycharm)