Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications
🕑 Added 2024-12-05 10:00:00 +0000 UTCIf you are using AI applications and installed software like InsightFace, XPose which you need to compile on your PC, you know that accurate CUDA and C++ tools is a nightmare. This post will help you to understand the fundamental concepts and fix your issues.
========
Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
========
3 September 2025 Fully Updated and Migrated Into Torch 2.8 and CUDA 12.9
Now we are moving to Torch 2.8 and CUDA 12.9.1 for all GPUs starting from RTX 1000 series
We won't use CUDA 11.8, 12.4 or 12.8 anymore
In most cases if you installed these or not won't matter since I will try to compile myself and add compiled versions to installers i made
But if you want to compile on your system such as InsightFace, XPose etc it will matter
Also for using DeepSpeed library proper installation is still mandatory
Moreover, we will be moving to cuDNN 9.12.0 and TensorRT 10.13.2 GA
Install Visual Studio Build Tools first then Visual Studio Community Edition and then CUDA and then Python
Visual Studio Build Tools
We are moving to v14 latest
Official Page :
The one we use 17.14.13 :
You can uninstall all previous (Visual Studio Build Tools) and install this one if you are upgrading like me

Which checkboxes to check

Visual Studio Community Edition
This is needed as MSVC still some libraries requiring this
Visual Studio Community edition install link : https://visualstudio.microsoft.com/downloads/
Which checkboxes to check - Simply select all except Incredibuild - Build Acceleration
I am using Visual Studio 17.14.13

Next We will add this folder to our system and user path
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC
Find the latest folder named like 14.44.35207
And find this folder \bin\Hostx64\x64
So full path on my PC
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64
Here screenshot

Then add that path to both Environment Variables into System Variables Path and User Variables Path
We duplicate everything both in system and user path don't forget
After click ok and close open a powershell (not cmd) and type below and see if working
cl
Screenshot of cl result

CUDA Installation
If you want to uninstall older versions here how

CUDA 12.9.1 download link for Windows 10 and Windows 11 :
Alternative Link on Hugging Face
Install selection as below

After installation restart PC
Then open a cmd and type nvcc --version and make sure you see as below

Installing cuDNN
We are moving to cuDNN 9.12.0
There is 1 extra path you need to add here don't forget that
To download it use here https://developer.nvidia.com/cudnn-archive
Here direct backup on Hugging Face : https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/cudnn_9.12_cuda_12.9.zip
We install as default
It is installed into here by default : C:\Program Files\NVIDIA\CUDNN
Therefore you have to manually add it into both Environment Variables into System Variables Path and User Variables Path
The folder you need to add to the paths is \bin\12.9 and main folder
e.g. C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9
and C:\Program Files\NVIDIA\CUDNN\v9.12

Extra Path you have to add is CUDNN_PATH
Add it into System Variables directly like below
e.g. : Variable name : CUDNN_PATH
Value : C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9

Python 3.10, 3.11, 3.12 and 3.13 Download Links
We are still using Python 3.10.11 as a default since this is the most widely supported and best working version
However, we will install other versions too because if necessary, my automatic installers will generate a VENV (virtual enviroment) with that specific Python version and use it automatically
Don't forget to install as in tutorial video directly into C drive with Python Launcher and don't forget to make Python 3.10.11 added to Environment Variables into System Variables Path and User Variables Path and set as top - check path variables screenshots at the very bottom of the post
3.10.11: https://www.python.org/downloads/release/python-31011/
3.11.9 : https://www.python.org/downloads/release/python-3119/
3.12.10 : https://www.python.org/downloads/release/python-31210/
3.13.17 (this is the worst one right now least supported) : https://www.python.org/downloads/release/python-3137/

FFmpeg Installation
https://github.com/BtbN/FFmpeg-Builds/releases
Use this specific version for now to not have any issues :
Extract exe files into C:\ffmpeg_latest
Add C:\ffmpeg_latest into your both Environment Variables into System Variables Path and User Variables Path
Then open a CMD and type ffmpeg and see like below

Git Installation
Download link : https://git-scm.com/downloads
Download and install just with next next next
After installing add these 2 folder into your both Environment Variables into System Variables Path and User Variables Path
C:\Program Files\Git\cmd
C:\Program Files\Git\bin
Virtual RAM Setup
You must setup at least 100 GB virtual RAM on your fastest drive
Tutorial Windows 10 : https://www.windowscentral.com/how-change-virtual-memory-size-windows-10
Tutorial Windows 11 : https://www.windowscentral.com/software-apps/windows-11/how-to-manage-virtual-memory-on-windows-11
This is super important since when loading an AI model initially, virtual RAM may be used
TensorRT Installation
In some cases TensorRT is necessary therefore we will also download and install it
Download link : https://developer.nvidia.com/tensorrt/download
It requires a free NVIDIA account
We are using TensorRT 10.13.2 GA
Alternative link on Hugging Face : https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/TensorRT-10.13.2.6.Windows.win10.cuda-12.9.zip?download=true
Extract the zip file into C drive like C:\TensorRT_10_13_2_6 and enter inside \lib
You must see nvinfer_10.dll and such files
Now add this path C:\TensorRT_10_13_2_6\lib and this path C:\TensorRT_10_13_2_6 into your both Environment Variables into System Variables Path and User Variables Path

Enable Windows Long Paths
Full article here : https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later
Reg file just download and run : Enable_Windows_Long_Paths.reg
NodeJS Installation
Also install NodeJS 22.20 since some apps need it like Ostris
When installing install all as default / next no changes
Download link : https://nodejs.org/en/download
Direct link : https://nodejs.org/dist/v22.20.0/node-v22.20.0-x64.msi
Fixing Triton Related Errors
If you get Triton related errors we need to delete the Triton cache folder
e.g. C:\Users\Furkan\.triton
So we clear whatever inside C:\Users\Furkan\.triton
I made a bat file for this so use this zip file, extract anywhere and double click and execute the bat file - don't run any of my bat files as administrators
Download clear cache zip file : Clear_Triton_Cache.zip
Environment Variables Screenshots - Rememer Top To Bottom Order Matters
Updated 3 September 2025
Main Screen

User Variables

System Variables

Comments
Furkan Gözükara
thank you so much appreciate the comment
Mark Molesworth
This was incredible, and you've fixed every single issue I've had with AI repos in general. I never knew that the order of values in path mattered. So many days/weeks of jerry-rigging things fixed in a few hours. Permanent subscriber for how much you've done for me
Furkan Gözükara
yes use the installer here it is fixed : https://www.patreon.com/posts/119254105 use v21 zip file
Adriano Bregu
hi! i have this problem with live portrait, can you help me ? thank you in advance!Please select an option: 1. Human Live Portrait 2. Animal Live Portrait Enter your choice (1 or 2): 1 Starting Human Live Portrait... [23:27:13] Load appearance_feature_extractor from live_portrait_wrapper.py:46 C:\Live_Portrait_tutorial_version\LivePortrait\pretrained_weights\liveportrait\ba se_models\appearance_feature_extractor.pth done. Load motion_extractor from live_portrait_wrapper.py:49 C:\Live_Portrait_tutorial_version\LivePortrait\pretrained_weights\liveportrait\ba se_models\motion_extractor.pth done. Load warping_module from live_portrait_wrapper.py:52 C:\Live_Portrait_tutorial_version\LivePortrait\pretrained_weights\liveportrait\ba se_models\warping_module.pth done. [23:27:14] Load spade_generator from live_portrait_wrapper.py:55 C:\Live_Portrait_tutorial_version\LivePortrait\pretrained_weights\liveportrait\ba se_models\spade_generator.pth done. Load stitching_retargeting_module from live_portrait_wrapper.py:59 C:\Live_Portrait_tutorial_version\LivePortrait\pretrained_weights\liveportrait\re targeting_models\stitching_retargeting_module.pth done. [23:27:15] FaceAnalysisDIY warmup time: 1.727s face_analysis_diy.py:79 [23:27:18] LandmarkRunner warmup time: 2.729s human_landmark_runner.py:95 Running on local URL: http://127.0.0.1:7860 ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 761, in __call__ await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 736, in app await route.handle(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 290, in handle await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 75, in app response = await f(request) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 302, in app raw_response = await run_endpoint_function( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 215, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2476, in run_sync_in_worker_thread return await future File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 431, in main gradio_api_info = api_info(False) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 460, in api_info app.api_info = app.get_blocks().get_api_info() File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type des = [ File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 948, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 761, in __call__ await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 736, in app await route.handle(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 290, in handle await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 75, in app response = await f(request) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 302, in app raw_response = await run_endpoint_function( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 215, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2476, in run_sync_in_worker_thread return await future File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 431, in main gradio_api_info = api_info(False) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 460, in api_info app.api_info = app.get_blocks().get_api_info() File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type des = [ File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 948, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 761, in __call__ await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 736, in app await route.handle(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 290, in handle await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 75, in app response = await f(request) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 302, in app raw_response = await run_endpoint_function( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 215, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2476, in run_sync_in_worker_thread return await future File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 431, in main gradio_api_info = api_info(False) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 460, in api_info app.api_info = app.get_blocks().get_api_info() File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type des = [ File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 948, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 761, in __call__ await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 736, in app await route.handle(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 290, in handle await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 75, in app response = await f(request) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 302, in app raw_response = await run_endpoint_function( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 215, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2476, in run_sync_in_worker_thread return await future File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 431, in main gradio_api_info = api_info(False) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 460, in api_info app.api_info = app.get_blocks().get_api_info() File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type des = [ File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 948, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 761, in __call__ await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 736, in app await route.handle(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 290, in handle await self.app(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\routing.py", line 75, in app response = await f(request) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 302, in app raw_response = await run_endpoint_function( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\fastapi\routing.py", line 215, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2476, in run_sync_in_worker_thread return await future File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 431, in main gradio_api_info = api_info(False) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\routes.py", line 460, in api_info app.api_info = app.get_blocks().get_api_info() File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2786, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type des = [ File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 948, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable Traceback (most recent call last): File "C:\Live_Portrait_tutorial_version\LivePortrait\app.py", line 478, in demo.launch( File "C:\Live_Portrait_tutorial_version\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 2466, in launch raise ValueError( ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost. Premere un tasto per continuare . . .
Furkan Gözükara
yes it is accurate as long as that folder has the cudnn dll files. i personally prefer C:\cudnn_9.7 since it doesnt have space character
lion king
Hi I downloaded cudnn 9.7 but it appears to be a zip folder instead of the installer. I extracted it and copied to "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDNN\v9.7\bin". I also added a path to it as well. Is that correct? I also copied to the bin folder for CUDA 12.8, 12.4 and 11.8. Is this ok?
Furkan Gözükara
sorry for late reply. CUDA 12.8, cuDNN 9.7 are good.
Kevin Merlos
Hello I have 5090, should I download the latest versions of cuda and cuDNN (there are newer ones) and make those default? Or should I just use the ones shown in this post? Should I also still include the old versions like cuda 11.8? Thanks!
kalayan rao
hi .. just few days back i got this error i dont now what is issue..i installed all reuirments what need for face fusion..what you showing by ur video tutorial ...like cuda cudnn c++ viual all ...everthing going well almost 4month no probelm at all but now i got this error plz help me ..................................error like diz when i run face fusion.....onnxruntime:, sequential_executor.cc:516 onnxruntime::ExecuteKernel] Non-zero status code returned while running Conv node. Name:'Conv_152' Status Message: D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:123 onnxruntime::CudaCall D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:116 onnxruntime::CudaCall CUDA failure 2: out of memory ; GPU=0 ; hostname=DESKTOP-5APH43 ; file=D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_allocator.cc ; line=47 ; expr=cudaMalloc((void**)&p, size);
Furkan Gözükara
hi this installer has RTX 5000 series support : https://www.patreon.com/posts/105023709
Jürgen Mayr
Hi, i would like to install comfyui with rtx5090 support. But i am a little lost with your page jumping from one page to another and from one video to another. What is the best way to install it on a fresh win11 pro system?
Furkan Gözükara
i don't know sadly. some libraries are nvidia depended and probably need to be replaced. check this out if works : https://github.com/KwaiVGI/LivePortrait/discussions/482
JT Eberhard
Got to the point of Human or Animal live portrait and it insisted I must have an Nvidia gpu. Can this not be done with AMD?
Stephen Murphy
np thanks!
Furkan Gözükara
just don't run my scripts as administrator - it will break them
Stephen Murphy
I just unchecked install for all users....now it works - guess it is something to do with admin privileges? Hopefully won't cause any probs down the line? It is only me on the computer Thanks!
Furkan Gözükara
you are welcome
Stephen Murphy
OK NP let me see if I can figure it out. Thanks
Furkan Gözükara
well without debugging i dont know. if you upgrade gold tier i can help you via remote desktop
Stephen Murphy
Installing Python310 failed for me. "The feature you are trying to use is on a resource that is unavailable" it seems ro be looking for test.msi for some reason. I have a log file from the set up failed window if tat helps? Not sure how to uplaod it here?
Furkan Gözükara
awesome
trsh3r
finally! thank you that did resolve my issue with the image sorter (I guess that was an issue with cudnn default not being the right one. I might play a bit with the install options of Visual Studio and Build tools, because that's a lot of space installing all. thanks again!
Furkan Gözükara
awesome
Shepard4k
thank you! that fixed some problems
Furkan Gözükara
awesome
David
Thanks heaps. After I installed LTSC 17.8 BuildTools and CUDA 12.4 it solved my issue where your latest ROPE versions couldn't import face images.