faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

OSError: [WinError 126] , ImportError: Could not find 'cudart64_90.dll'.

Open dover opened this issue 8 years ago • 5 comments

Model A Directory: E:\Users\User\Documents\GitHub\faceswap\data\trump Model B Directory: E:\Users\User\Documents\GitHub\faceswap\data\cage Training data directory: E:\Users\User\Documents\GitHub\faceswap\models Loading data, this may take a while... Loading Model from Model_Original plugin... C:\Users\User\Envs\faceswap\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as register_converters Using TensorFlow backend. Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\User\Envs\faceswap\lib\site-packages\tensorflow\python\platform\self_check.py", line 75, in preload_check ctypes.WinDLL(build_info.cudart_dll_name) File "c:\users\user\appdata\local\programs\python\python36\Lib\ctypes_init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\users\user\appdata\local\programs\python\python36\Lib\threading.py", line 916, in bootstrap_inner self.run() File "c:\users\user\appdata\local\programs\python\python36\Lib\threading.py", line 864, in run self.target(*self.args, **self.kwargs) File "E:\Users\User\Documents\GitHub\faceswap\scripts\train.py", line 137, in processThread model = PluginLoader.get_model(trainer)(get_folder(self.arguments.model_dir)) File "E:\Users\User\Documents\GitHub\faceswap\plugins\PluginLoader.py", line 13, in get_model return PluginLoader.import("Model", "Model{0}".format(name)) File "E:\Users\User\Documents\GitHub\faceswap\plugins\PluginLoader.py", line 22, in import module = import(name, globals(), locals(), [], 1) File "E:\Users\User\Documents\GitHub\faceswap\plugins\Model_Original.py", line 3, in from keras.models import Model as KerasModel File "C:\Users\User\Envs\faceswap\lib\site-packages\keras_init.py", line 3, in from . import utils File "C:\Users\User\Envs\faceswap\lib\site-packages\keras\utils_init.py", line 6, in from . import conv_utils File "C:\Users\User\Envs\faceswap\lib\site-packages\keras\utils\conv_utils.py", line 3, in from .. import backend as K File "C:\Users\User\Envs\faceswap\lib\site-packages\keras\backend_init.py", line 83, in from .tensorflow_backend import * File "C:\Users\User\Envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 1, in import tensorflow as tf File "C:\Users\User\Envs\faceswap\lib\site-packages\tensorflow_init.py", line 24, in from tensorflow.python import * File "C:\Users\User\Envs\faceswap\lib\site-packages\tensorflow\python_init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\Users\User\Envs\faceswap\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in self_check.preload_check() File "C:\Users\User\Envs\faceswap\lib\site-packages\tensorflow\python\platform\self_check.py", line 82, in preload_check % (build_info.cudart_dll_name, build_info.cuda_version_number)) ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit

  • Operating system and version: Windows
  • Python version: 3.6.4
  • Faceswap version: commit hash or version number
  • Faceswap method: GPU
  • i have install CUDA 9.1

dover avatar Feb 17 '18 19:02 dover

You already answered your question

ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit

You need cuda 9.0

KMMR156 avatar Feb 17 '18 19:02 KMMR156

You can build TensorFlow for CUDA 9.1.

Uklosk avatar Feb 17 '18 21:02 Uklosk

@KMMR156 But https://developer.nvidia.com/cuda-toolkit download is CUDA 9.1,where to download CUDA 9.0?

dover avatar Feb 18 '18 06:02 dover

capture capture2

https://developer.nvidia.com/cuda-90-download-archive

KMMR156 avatar Feb 18 '18 09:02 KMMR156

@KMMR156 Thank you 👍

dover avatar Feb 18 '18 17:02 dover