Describe the bug
I download a demo for object detection. My laptop has two GPU: 0 intel & 1 Nvidia, so I have set ""Environment.SetEnvironmentVariable("CUDA_VISIBLE_DEVICES", "1"); (Source code:
yolov5-net-master.zip
)
When in debug mode, GPU is used, it's seems good.
But after deploy without any change just change to release model, GPU is not used.
To Reproduce
Steps to reproduce the behavior:
Open sloution;
Debug, Gpu is used
Delopy to local file system in release win-x64, net8.0-windows
Click exe to execute, GPU cann't be used
Expected behavior
GPU should be used after deploy and consist with debug.
Screenshots, Code, Sample Projects
1、When debug, GPU is used
System Information (please complete the following information):
Describe the bug I download a demo for object detection. My laptop has two GPU: 0 intel & 1 Nvidia, so I have set ""Environment.SetEnvironmentVariable("CUDA_VISIBLE_DEVICES", "1"); (Source code: yolov5-net-master.zip ) When in debug mode, GPU is used, it's seems good. But after deploy without any change just change to release model, GPU is not used.
To Reproduce Steps to reproduce the behavior:
Expected behavior GPU should be used after deploy and consist with debug.
Screenshots, Code, Sample Projects 1、When debug, GPU is used
2、Deploy setting
3、When deployed, GPU cann't use
Additional context NVIDIA-SMI 546.33 Driver Version: 546.33 cuda_11.6.2_511.65_windows cudnn-windows-x86_64-8.9.6.50_cuda11