NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications

If 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

Visual Studio Build Tools

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

Here screenshot

Screenshot of cl result

CUDA Installation

After installation restart PC

Then open a cmd and type nvcc --version and make sure you see as below

Installing cuDNN

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

FFmpeg Installation

Git Installation

Virtual RAM Setup

TensorRT Installation

Enable Windows Long Paths

NodeJS Installation

Fixing Triton Related Errors

Environment Variables Screenshots - Rememer Top To Bottom Order Matters

Updated 3 September 2025

Main Screen

User Variables

System Variables

Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications Solving CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications

Comments

thank you so much appreciate the comment

Furkan Gözükara

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

Mark Molesworth

yes use the installer here it is fixed : https://www.patreon.com/posts/119254105 use v21 zip file

Furkan Gözükara

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 . . .

Adriano Bregu

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

Furkan Gözükara

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?

lion king

sorry for late reply. CUDA 12.8, cuDNN 9.7 are good.

Furkan Gözükara

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!

Kevin Merlos

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);

kalayan rao

hi this installer has RTX 5000 series support : https://www.patreon.com/posts/105023709

Furkan Gözükara

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?

Jürgen Mayr

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

Furkan Gözükara

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?

JT Eberhard

np thanks!

Stephen Murphy

just don't run my scripts as administrator - it will break them

Furkan Gözükara

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!

Stephen Murphy

you are welcome

Furkan Gözükara

OK NP let me see if I can figure it out. Thanks

Stephen Murphy

well without debugging i dont know. if you upgrade gold tier i can help you via remote desktop

Furkan Gözükara

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?

Stephen Murphy

awesome

Furkan Gözükara

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!

trsh3r

awesome

Furkan Gözükara

thank you! that fixed some problems

Shepard4k

awesome

Furkan Gözükara

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.

David


Related Creators