Tutorial Link :
This comprehensive guide is essential for anyone looking to utilize AI, generative AI applications, or open source software on their computer. I'll walk you through the precise steps to properly install and configure various Python versions, switch between them, and set up different CUDA and cuDNN versions. Additionally, I'll demonstrate how to install Microsoft Visual Studio and the appropriate C++ Build Tools version for compiling applications like InsightFace or XPose on your system.
Useful Links
🔗 Detailed Instructions Page (Freely Accessible) ⤵️
▶️ https://www.patreon.com/posts/111553210
🔗 SECourses Discord Server for Comprehensive Support ⤵️
▶️ https://discord.com/servers/software-engineering-courses-secourses-772774097734074388
🔗 SECourses Reddit Community ⤵️
▶️ https://www.reddit.com/r/SECourses/
🔗 SECourses GitHub Repository ⤵️
▶️ https://github.com/FurkanGozukara/Stable-Diffusion
🔗 Previous Essential Tutorial ⤵️
▶️https://youtu.be/-NjNy7afOQ0
Recommended Versions as of September 30, 2024
Python 3.10.11
CUDA 12.4
cuDNN 8.9 (latest version, manually added to system path)
C++ Build Tools LTSC 17.8 (latest version)
After completing this tutorial, you should be able to run various AI applications without issues, including Automatic1111 SD Web UI, Kohya, SUPIR, IDM VTON, LivePortrait, FaceFusion 3, Rope Pearl, Rope Next, Roop, InstantID, Forge Web UI, Fooocus, CogVideoX, SwarmUI, ComfyUI, Stable Diffusion, SDXL, SD3, ControlNet, and more. This guide covers virtually any popular open source or proprietary AI application that can be run locally on Windows.
This video also addresses common errors, such as:
onnxruntime\python\onnxruntime_pybind_state.cc:866 onnxruntime::python::CreateExecutionProvider Instance CUDA_PATH is set but CUDA wasnt able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page
Video Sections
0:00 Introduction to the tutorial
2:00 Checking current Python, FFMPEG, and CUDA versions
2:28 Correctly installing Python 3.10 and 3.11
4:25 Installing and understanding the importance of py launcher
4:56 Changing default Python version to 3.10 after installing both 3.10 and 3.11
5:10 Using Edit system environment variables to set default applications
6:15 Properly installing Microsoft Visual Studio for on-device library compilation
7:33 Uninstalling previously installed applications before proper reinstallation
8:18 Correctly installing CUDA 11.8 and 12.4 on Windows for AI applications
12:53 Switching between CUDA 11.8 and CUDA 12.4
13:33 Downloading, installing, and setting up the latest FFMPEG
16:03 Installing the latest cuDNN libraries
17:23 Accurately installing compatible C++ Compile Build Tools for CUDA 11.x and 12.x
19:12 Checking and removing previously installed C++ Compile Build tools
20:30 Downloading and installing Git for repository cloning
21:31 Installing and running LivePortrait AI on Windows, including animal Live Portrait
23:28 Resolving frozen CMD, paused application installs, or running issues
24:04 Exporting CMD installation logs on Windows 11 for error reporting
24:49 Fixing the "CUDA_PATH is set but CUDA wasn't able to be loaded" error
25:09 Installing older cuDNN 8.9.7 to resolve CUDA loading issues
27:34 Installing and using nvitop to monitor GPU and VRAM usage
28:56 Running the animal version of LivePortrait for animating animal faces
29:55 Installing and running FaceFusion 3 locally
30:31 Identifying and resolving Git-related cloning errors
33:31 Solving DLL-related ONNX Runtime errors in FaceFusion 3
33:50 Fixing ONNX Runtime errors by copying cuDNN 9.4 DLL files
34:38 Testing Face Fusion 3 with provided demo materials


