Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependence error on caffe2_detectron_ops_gpu.dll #117

Open
funnymoon-ddsun opened this issue Dec 16, 2022 · 5 comments
Open

dependence error on caffe2_detectron_ops_gpu.dll #117

funnymoon-ddsun opened this issue Dec 16, 2022 · 5 comments

Comments

@funnymoon-ddsun
Copy link

On x64 win10 and 11, I got the follow error even if I only try the CPU version. I have installed VC_redist.x64.exe while win 11 is a clean system.

[WinError 126] The specified module could not be found. Error loading "C:\Users\vm\Downloads\DeepMosaics_0.5.1_gpu\core\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.

@Crushedice
Copy link

Greetings,
i got this issue solved, by installing the correct CUDA toolkit, in addition i manually put cuDNN in place aswell.

The correct CUDA Version - Download

And a small help in installing the components
NVIDIA

Just a small tipp , when you install CUDA,
make sure you dont do the "recommended" installation.
You should pick what to install as you probably dont want to install the outdated display driver
and a few other things that comes with it.

@ferograd
Copy link

Greetings, i got this issue solved, by installing the correct CUDA toolkit, in addition i manually put cuDNN in place aswell.

The correct CUDA Version - Download

And a small help in installing the components NVIDIA

Just a small tipp , when you install CUDA, make sure you dont do the "recommended" installation. You should pick what to install as you probably dont want to install the outdated display driver and a few other things that comes with it.

If I've already installed a later version of CUDA, is there a way to revert? I've been trying everything. I've uninstalled everything to do with Cuda 12.2 and installed version 11 but still am getting the same error.

Also despite uninstalling when using "nvidia-smi" in CMD it still says version 12.2

@EKI-INDRADI
Copy link

EKI-INDRADI commented Nov 5, 2023

need python 3.6 (better use anaconda & install cuda in anaconda)

https://github.com/EKI-INDRADI/DeepMosaics_tested_20231105 works 100%

@seatv
Copy link

seatv commented Dec 14, 2024

need python 3.6 (better use anaconda & install cuda in anaconda)

https://github.com/EKI-INDRADI/DeepMosaics_tested_20231105 works 100%

@EKI-INDRADI , I shall definitely try it out in few days.

Running on Asus 1060 card, I installed Cuda 11.8. That resulted in the dll missing error messge. Downloaded 11.0 from @Crushedice post above and the missing dll error went away. However, one thing I am sure sure is if the GPU is being utilized. During mosaic detection the GPU is at 1%.

@seatv
Copy link

seatv commented Dec 14, 2024

@EKI-INDRADI , I followed your instructions, however, the second set of dependences failed

(deep_mosaic_20231105) PS C:\WINDOWS\system32> conda install torch opencv_pyth numpy matplotlib tensorboardX scikit-image cv2
Channels:
 - defaults
 - nvidia
 - pytorch
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - torch
  - opencv_pyth
  - cv2

Current channels:

  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/msys2
  - https://conda.anaconda.org/nvidia
  - https://conda.anaconda.org/pytorch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Can you let us know what versions of the packages should be downloaded?

And... while torch seems to be available, not sure which version to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants