OSError: [WinError 126] , ImportError: Could not find 'cudart64_90.dll'.
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
- 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
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
You can build TensorFlow for CUDA 9.1.
@KMMR156 But https://developer.nvidia.com/cuda-toolkit download is CUDA 9.1,where to download CUDA 9.0?
https://developer.nvidia.com/cuda-90-download-archive
@KMMR156 Thank you 👍