在conda环境中(包括cuda,cudnn,onnxruntime-gpu等)使用pyinstaller打包onnxruntime-gpu程序。 Pyinstaller 命令配置-包含onnxruntime-gpu 如果conda环境路径为“C:/Users/demo/miniconda3/envs/face_rec/”。 pyinstaller --add-data="dll/*;." --add-binary "C:/Users/demo/miniconda3/envs/face_rec/Lib/site-packages/onnxruntime/capi/onnxruntime_providers_cuda.dll;./onnxruntime/capi" --add-binary "C:/Users/demo/miniconda3/envs/face_rec/Lib/site-packages/onnxruntime/capi/onnxruntime_providers_shared.dll;./onnxruntime/capi" .\YOUR_PYTHON_FILE_TO_RUN.py 收集CUDA、CUDNN对应的dll 在conda环境中,运行下列指令,找到对应的文件后,手动复制到打包好的exe路径下。 conda run where cuda*.dll conda run where cudnn*.dll
Function By using this module, you can upload your image to SM.MS and obtain a unique URL for downloading it. Subsequently, the URL is converted into a QR code, making it easily accessible for users to download the image using their smartphones. Input: an image Output: URL and QR code…