# Error loading caffe2\_detectron\_ops\_gpu.dll or one of its dependencies

**URL:** <https://discuss.pytorch.org/t/error-loading-caffe2-detectron-ops-gpu-dll-or-one-of-its-dependencies/125931>\
**Category:** windows\
**Created:** [July 6, 2021, 8:44am UTC](https://discuss.pytorch.org/t/error-loading-caffe2-detectron-ops-gpu-dll-or-one-of-its-dependencies/125931 "2021-07-06T08:44:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_khanna](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@r\_khanna](https://discuss.pytorch.org/u/r_khanna)\
**Post date:** [July 6, 2021, 8:44am UTC](https://discuss.pytorch.org/t/error-loading-caffe2-detectron-ops-gpu-dll-or-one-of-its-dependencies/125931/1 "2021-07-06T08:44:53Z")

</div>

Hello, I keep getting this error when I run my file from cmd-

`OSError: [WinError 193] <no description> Error loading "C:\Users\Lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.`

Below is the command that I run.

```auto
C:\Users\Lenovo\Documents\Data science\stylegan2-ada-pytorch>python psnr.py -d0 dataset2Oscar_all/Input -d1 dataset2Oscar_all/Peihao_result -o psnr_peihao.txt --use_gpu
Traceback (most recent call last):
  File "psnr.py", line 3, in <module>
    import torch
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\ __init__.py", line 123, in <module>
    raise err
OSError: [WinError 193] <no description> Error loading "C:\Users\Lenovo\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.

```
