[![image](https://img.shields.io/discord/772774097734074388?label=Discord&logo=discord)](https://discord.com/servers/software-engineering-courses-secourses-772774097734074388) [![Hits](https://hits.sh/github.com/FurkanGozukara/Stable-Diffusion/blob/main/Amazing-Generative-AI-Scripts.md.svg?style=plastic&label=Hits%20Since%2025.08.27&labelColor=007ec6&logo=SECourses)](https://hits.sh/github.com/FurkanGozukara/Stable-Diffusion/blob/main/Amazing-Generative-AI-Scripts.md)
[![Patreon](https://img.shields.io/badge/Patreon-Support%20Me-F2EB0E?style=for-the-badge&logo=patreon)](https://www.patreon.com/c/SECourses) [![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/DrFurkan) [![Furkan Gözükara Medium](https://img.shields.io/badge/Medium-Follow%20Me-800080?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@furkangozukara) [![Codio](https://img.shields.io/static/v1?style=for-the-badge&message=Articles&color=4574E0&logo=Codio&logoColor=FFFFFF&label=CivitAI)](https://civitai.com/user/SECourses/articles) [![Furkan Gözükara Medium](https://img.shields.io/badge/DeviantArt-Follow%20Me-990000?style=for-the-badge&logo=deviantart&logoColor=white)](https://www.deviantart.com/monstermmorpg)

[![YouTube Channel](https://img.shields.io/badge/YouTube-SECourses-C50C0C?style=for-the-badge&logo=youtube)](https://www.youtube.com/SECourses)  [![Furkan Gözükara LinkedIn](https://img.shields.io/badge/LinkedIn-Follow%20Me-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/furkangozukara/)   [![Udemy](https://img.shields.io/static/v1?style=for-the-badge&message=Stable%20Diffusion%20Course&color=A435F0&logo=Udemy&logoColor=FFFFFF&label=Udemy)](https://www.udemy.com/course/stable-diffusion-dreambooth-lora-zero-to-hero/?referralCode=E327407C9BDF0CEA8156) [![Twitter Follow Furkan Gözükara](https://img.shields.io/badge/Twitter-Follow%20Me-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/GozukaraFurkan)

# SECourses Patreon

YouTube : https://www.youtube.com/SECourses

Patreon : https://www.patreon.com/c/SECourses

Please join discord and message me there so I can give you Patreon rank in our channel

Discord : https://discord.com/servers/software-engineering-courses-secourses-772774097734074388

Your Patreon support is tremendously important for me so thank you so much

### Patreon Sharings Index

https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Patreon-Posts-Index.md

### Amazing Generative AI Scripts

https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Amazing-Generative-AI-Scripts.md

### Generative AI Updates & News

https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Generative-AI-Updates-And-News.md

## RTX 5000 Series supporting pre-compiled GroundingDINO with Torch 2.7 official version
* Download the zip file
* Check content of Windows_Install.bat with any text editor
* https://www.patreon.com/posts/120352012

## RTX 5000 Series Official Torch 2.7 and pre-compiled xFormers and Triton installers - latest
* Download the zip file
* Check content of Windows_Install.bat with any text editor
* https://www.patreon.com/posts/121228327

## Monkey Patch Example for Python APPs and Libraries
* Download the zip file and install Windows_Install_ALL_GPUs.bat
* It will install Practical-RIFE
* Look Practical-RIFE folder and look for inference_video.py
* You will see there we monkey-patch (monkey patch) numpy to work older library with newer numpy version
* Zip file : https://www.patreon.com/posts/123105403
* This above post has installer for Wan 2.1 Ultra Advanced Gradio APP for - Works as low as 4GB VRAM - 1-Click Installers for Windows, RunPod, Massed Compute - Batch Processing - T2V - I2V - V2V

## Windows AI APPs Installer for RTX 5000 Series like RTX 5070, RTX 5080, RTX 5090 etc
* Download the zip file and look for Windows_Install_RTX_5000_Series.bat
* It has pre-compiled wheels installers for RTX 5000 Series for
* Torch 2.7 and Torchvision for CU128 
* Flash Attention 2.7.4 for CU128 - pre-compiled
* Triton and DeepSpeed
* Zip file : https://www.patreon.com/posts/123105403
* This above post has installer for Wan 2.1 AI Video Model APP for Windows, RunPod, Massed Compute and Kaggle

## Example code that sets up proper CUDA (12+) and cuDNN (9+) on Kaggle notebook
* Download the zip file in below post
* Load Kaggle notebook into any editor
* You will see how it downloads and sets CUDA and cuDNN
* Zip file : https://www.patreon.com/posts/119254105
* This above post has installer for LivePortrait APP for Windows, RunPod, Massed Compute and Kaggle

## cuDNN 9.7 Install Command on Linux System and How To Make APPs Use It
* Download the zip file in below post
* Massed_Compute_Install.sh file has cuDNN install code
* Massed_Compute_Instructions_READ.txt shows how to set its installed path to be used by the python APP
* Zip file : https://www.patreon.com/posts/121570322
* This above post has installer for VisoMaster app

## Python 3.10 Pre-Compiled Wheel for diffoctreerast and diff-gaussian-rasterization
* I have pre-compiled diffoctreerast and diff_gaussian_rasterization for Python 3.10
* When you download attached zip file from below post check out
* Windows_Install.bat for Python 3.10
* Just use any word editor to see their content
* Zip file : https://www.patreon.com/posts/117470976
* This zip file contains Python venv installers for TRELLIS from Microsoft to generate 3D assets from Images as GLB file and also Gaussian Splatting ply

## Python 3.10 and 3.11 Pre-Compiled Wheel for insightface
* I have pre-compiled insightface both for Python 3.10 and 3.11 for Windows systems with CUDA 12.4+
* When you download attached zip file from below post check out
* Windows_Install.bat for Python 3.10 and
* Windows_Install_Python_3_11.bat for Python 3.11
* Just use any word editor to see their content
* Zip file : https://www.patreon.com/posts/105023709
* This zip file contains Python venv installers for ComfyUI, FaceID, IP-Adapter, InsightFace Automatic Installers for Windows, RunPod, Massed Compute, Linux

## Python 3.10 Windows Pre-Compiled Wheel for MultiScaleDeformableAttention 
* We are using pre-compiled MultiScaleDeformableAttention wheel for Live Portrait installer
* Download zip file and edit Windows_Start_app.bat file and you will see how to use
* The zip file shared in following link : https://www.patreon.com/posts/119254105

## How to do Multiprocessing Statistics
* Let's say you are starting a batch multi-process processing in a Python app
* Having synchronized data transfer and statistics between processes is too hard
* This below Joy_Caption_Alpha_Two.py starts multiple batch captioning on each given GPU and has necessary code and custom class Statistics to ensure proper data synchronization between multiple started processes
* https://www.patreon.com/posts/118827960
* Tested on Windows and works great - should work perfectly on Linux as well

## How to 1-Copy Paste Install cuDNN 9.6 on Linux / Ubuntu and Set as System Wide Default
* If you are having problem with ONNX GPU Runtime due to cuDNN mismatch here the solution
* The RunPod installer script (RunPod_Install.sh) in below post has accurate install instructions and commands to install cuDNN and set as default
* https://www.patreon.com/posts/119081500
* Tested on Roop Unleashed on RunPod

## TorchAudio compatiable FFmpeg and FFmpeg Tools Automatic Installer for Python VENVs on Windows
* If you are having errors related torio package this is the scripts you need
* Script link : https://www.patreon.com/posts/117990364
* This script has automatic downloaders and accurate folder installers for missing FFmpeg DLL files
* This script solves the following errors
* * ImportError: Failed to intialize FFmpeg extension. Tried versions: ['6', '5', '4', ''].
* * File "venv\lib\site-packages\torio\_extension\utils.py", line 122, in _find_ffmpeg_extension

## Run Any Browser Accessible APP via Cloudflared 

* With Cloudflared, for free, you can access any app that is running on a remote PC via your browser in your PC, Phone, Tablet, TV etc
* Look at the Massed_Compute_Instructions_READ.txt and Massed_Compute_Install.sh to learn how to use Cloudflared amazing tunneling feature
* Way better than ngrok and it is for free no bandwith limit 
* Patreon post : https://www.patreon.com/posts/117326651

## Uber Fast Hugging Face Repo Model Downloading Scripts - Single File Unlimited Speed

* Normally downloads from Hugging Face repos are limited to 40 MB per second
* With the strategy used in download models script in the below post attached zip file, you can download model from Hugging Face Ultra fast without any speed limitation
* Kohya FLUX Fine Tuning (Full Checkpoints) Training Full Tutorial For Local Windows and Cloud RunPod and Massed Compute
* Patreon post : https://www.patreon.com/posts/112099700

## WGET Alternative Very Fast Downloader Scripts Single Line - Multiple Connection wget

* The attached Kaggle notebook is using this special strategy to download models uber fast on Kaggle
* Would work on every platform
* Free Kaggle Account Notebook for SwarmUI with FLUX, SD 1.5, SDXL & Stable Diffusion 3.5 Large and Dual T4 GPU support
* Patreon post : https://www.patreon.com/posts/106650931

## How to Install CUDA 12.4 and set as default - easy - also installs cuDNN latest and works with LivePortrait XPose/models/UniPose local building

* Massed_Compute_Install.sh file has it with sudo
* Patreon post : https://www.patreon.com/posts/107609670

## How to Set Both System Path Variable and User Path Variable Via .bat File Automatically

* Windows_Fix_cuDNN_Errors_Run_As_Administrator.bat does that so it is an example code
* https://www.patreon.com/posts/103765029

## How to Install cuDNN 9.4 Files Directly via Pip Install

* This method can be used to install any cuDNN files directly into venv
* Tested on famous FaceFusion 3 - works perfect
* The code is inside Windows_Install.bat file
* https://www.patreon.com/posts/103765029

## Access Massed Compute Running APPs on Your Windows Computer Browser via Powershell

* The included zip file has Massed Compute instructions that explains step by step
* The instructions can be used for any Ubuntu Machine with IP
* https://www.patreon.com/posts/112912425

## How to Use Yolo Models in A Batch Processing Application Fully Re-useable Code - Yolo V10 and V9

* Both Windows and Ubuntu 1-click installation
* Fully batch processing
* 79 Classes of Yolo V10 available
* Auto zooming in target and cropping target without cropping any part of the target
* Full automatic focus face auto resizing
* Ultimate Batch Image Pre-Processing Gradio APP for Windows and Cloud (RunPod , Massed Compute) With Yolo Models - 1-Click To Install And Use
* https://www.patreon.com/posts/112126955

## How to Install CUDA 12.4 and cuDNN 9.4 on Linux / Ubuntu Systems and Set as Default 

* Massed_Compute_Install.sh file has it with sudo
* Runpod_Install.sh file has it without sudo
* Patreon post : https://www.patreon.com/posts/103765029
* Download zip file for FaceFusion NEXT they are inside it

## Solution For Error : OSError: WinError 126 The specified module could not be found. Error loading "venv\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies

* The solution for this error posted on below link
* https://www.patreon.com/posts/109913645
* Check the section **Windows Requirements**

## Utra Fast and Robust Hugging Face Upload and Download Notebook & Code

* Hugging Face Upload / Download Notebook - Supports Private Repositories and Multi Commit as Well
* https://www.patreon.com/posts/104672510

## Utra Fast and Robust and With Resume Capability Hugging Face Repo Downloader With snapshot_download Script

* Most Advanced 1-Click DeepFake / FaceSwap App Rope Installer for Windows and Massed Compute and Linux
* Rope Live has it
* https://www.patreon.com/posts/105123768

## Truly Multi-GPU and Batch Size Having Amazing Caption Generator APP with AutoModelForCausalLM

* JoyCaption : Amazing Image Captioner - Batch Processing Included - Windows, RunPod, Massed Compute 1-Click Install
* https://www.patreon.com/posts/joycaption-image-110613301

## 4-bit LLM Loading via AutoModelForCausalLM and Huge Speed Up Requirements

* JoyCaption : Amazing Image Captioner - Batch Processing Included - Windows, RunPod, Massed Compute 1-Click Install
* https://www.patreon.com/posts/joycaption-image-110613301

## onnxruntime Errors Fixing C++ Tools Install Link

* FaceFusion (Most Advanced 1-Click DeepFake) 1-Click Installer for Windows, RunPod and Massed Compute
* https://www.patreon.com/posts/103765029

## Numpy Error on Kaggle Fixing Code Having Kaggle Notebook

* ResShift 1-Click Windows, RunPod, Massed Compute, Kaggle Installers with Amazing Gradio APP and Batch Image Processing
* URL : https://www.patreon.com/posts/110331752

## All Perfect Installer Scripts for RunPod, Massed Compute, Kaggle, Windows as a Base

* These ones can be used as a base template
* ResShift 1-Click Windows, RunPod, Massed Compute, Kaggle Installers with Amazing Gradio APP and Batch Image Processing
* URL : https://www.patreon.com/posts/110331752

## Missing cuDNN CUDA DLLs Installer Code for Ubuntu

* In Massed_Compute_Install.sh file there is necessary code to install missing cuDNN CUDA dll libraries that will solve ONNX library errors when using FaceFusion and such apps
* URL : https://www.patreon.com/posts/103765029

## Comparing 2 Folder Differences Python Script with Excluded Folders and .gitginore Following

* If you ever need to compare different files in given 2 folders with also listing missing or extra files this script is amazing
* I used Compare_2_Folders_Differences.py file inside LivePortrait installer zip to compare 2 different forks of LivePortrait repos
* URL : https://www.patreon.com/posts/107609670

## gcc and g++ Installer Script for Ubuntu in Massed Compute Installer for AI

* For AI repos compiling accurate gcc and g++ is a nightmate
* LivePortrait Massed Compute installer has it for XPose UniPose ops library compiling
* URL : https://www.patreon.com/posts/107609670

## Robust Hugging Face Repo Individal Files Downloader

* On LivePortrait app, we have HF_model_downloader script which downloads given Hugging Face repo files 1 by 1 in a very robust way
* It has skip fully downloaded, retry and resume capability
* URL : https://www.patreon.com/posts/107609670
