RuntimeError: Error when binding input: There's no data transfer registered for copying tensors from Device:[DeviceType:1 MemoryType:0 DeviceId:0] to Device:[DeviceType:0 MemoryType:0 DeviceId:0]
RuntimeError: Error when binding input: There's no data transfer registered for copying tensors from Device:[DeviceType:1 MemoryType:0 DeviceId:0] to Device:[DeviceType:0 MemoryType:0 DeviceId:0]
I had the same problem and I fixed it by upgrading onnxruntime-gpu to 1.21.0
Getting the same error when attempting to add images to the Input Faces area of the GUI. Have updated onnxruntime-gpu to 1.21.0.
If it can be of help, in my virtual env I have:
Python 3.10.16
Packages installed: certifi==2025.1.31 charset-normalizer==3.4.1 coloredlogs==15.0.1 darkdetect==0.7.1 filelock==3.18.0 flatbuffers==25.2.10 fsspec==2025.3.0 ftfy==6.3.1 humanfriendly==10.0 idna==3.10 imageio==2.37.0 Jinja2==3.1.6 kornia==0.8.0 kornia_rs==0.1.8 lazy_loader==0.4 markdown-it-py==3.0.0 MarkupSafe==3.0.2 mdurl==0.1.2 mpmath==1.3.0 networkx==3.4.2 numexpr==2.10.2 numpy==1.26.4 nvidia-cublas-cu12==12.4.2.65 nvidia-cuda-cupti-cu12==12.4.99 nvidia-cuda-nvrtc-cu12==12.4.99 nvidia-cuda-runtime-cu12==12.4.99 nvidia-cudnn-cu12==9.1.0.70 nvidia-cufft-cu12==11.2.0.44 nvidia-curand-cu12==10.3.5.119 nvidia-cusolver-cu12==11.6.0.99 nvidia-cusparse-cu12==12.3.0.142 nvidia-nccl-cu12==2.20.5 nvidia-nvjitlink-cu12==12.4.99 nvidia-nvtx-cu12==12.4.99 onnx==1.16.1 onnxruntime-gpu==1.21.0 onnxsim==0.4.36 opencv-python==4.10.0.84 packaging==24.1 Pillow==9.5.0 protobuf==4.23.2 psutil==6.0.0 Pygments==2.19.1 pyqt-toast-notification==1.3.2 pyqtdarktheme==2.1.0 PySide6==6.8.2.1 PySide6_Addons==6.8.2.1 PySide6_Essentials==6.8.2.1 pyvirtualcam==0.11.1 PyWavelets==1.8.0 QDarkStyle==3.2.3 QtPy==2.4.3 regex==2024.11.6 requests==2.32.3 rich==13.9.4 scikit-image==0.21.0 scipy==1.15.2 shiboken6==6.8.2.1 sympy==1.13.3 tensorrt==10.6.0 tensorrt-cu12==10.6.0 tensorrt-cu12-bindings==10.6.0 tensorrt-cu12-libs==10.6.0 tifffile==2025.3.30 torch==2.4.1+cu124 torchaudio==2.4.1+cu124 torchvision==0.19.1+cu124 tqdm==4.67.1 triton==3.0.0 typing_extensions==4.13.0 urllib3==2.3.0 wcwidth==0.2.13
nvidia-smi output:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.133.07 Driver Version: 570.133.07 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3090 Off | 00000000:0C:00.0 Off | N/A |
| 0% 33C P8 9W / 350W | 50MiB / 24576MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
Many thanks for the above info. The programme was running just the other day, perhaps a background update (Windows 11) has caused an issue?
pip install onnxruntime-gpu==1.21.0 fixed
onnxruntime-gpu 1.22 also works
having the same issue using portable method any one can help what script to run ?
i cannot detect faces when using tensor RT or cuda or even put faces if tensor or Cuda