FluxSD (https://fluxsd.com) is an open source AIGC platform for image and text built with PHP+Nginx+Python+Redis+Mysql. With this platform, you can use the GPU computing power of your local computer to build a Stable diffution image generation system locally. You can also share your GPU computing power for others to use. In addition, this platform also integrates the latest Midjourney, Stable Diffution, Llama3.1 and other large model APIs. Even if your local computer does not have a GPU, you can generate content by calling FluxSD.com or other official APIs. The main features are as follows:
-
Completely open source, built with PHP+Nginx+Mysql+Redis+Laravel11.
-
Support Docker orchestration, fast and large-scale deployment.
-
Call the Midjourney official interface through Discord's API to achieve Midjourney function integration.
-
Support the latest Stable Diffution 3.
-
Support Llama3.1.
-
Support download community model.
-
Support image management and edit.
-
Support simple and fast editing of images (cropping, rotation, format conversion, background removal, resolution enhancement, etc.)
git clone https://github.com/tonera/fluxsd.git
cd fluxsdCopy .env.example to .env. Open .env and update APP_HOST option:
APP_HOST={Your ip address}Linux or Mac
docker-compose upWindows
docker-compose.exe upOpen the url in your browser:http://{Your ip address}:8000
- AI Image Generator (hereinafter referred to as Generator) is an optional installation item.
- Generator requires your computer to have at least Nvidia series graphics card with more than 8G memory.
- If you do not have a graphics card that meets the requirements, please do not install the Generator, just use the API directly.
- Generator only supports Nvidia series graphics cards.
- Supports Linux and Windows OS (Include WSL).
- Make sure your computer has installed the CUDA driver
The methods for each operating system are slightly different, please search them yourself.
Download the newest generator.zip in the page: https://github.com/tonera/fluxsd/releases and unzip it.
Enter the unzipped directory (Windows OS, open the terminal of Powershell)
cd generator
python -m venv .venv
. .venv/bin/activate
python -m venv .venv
.venv\Scripts\activate
pip install -r requirement.txt
.venv\Lib\site-packages\basicsr\data\degradations.py at line 8
from torchvision.transforms.functional_tensor import rgb_to_grayscaleBe changed to:
from torchvision.transforms.functional import rgb_to_grayscaleOpen https://pytorch.org/ and choose the corresponding configuration according to your actual situation.
For example, if my graphics card CUDA driver is 12.4, execute the following command to install it.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124Open Fluxsd in the browser, click the configuration menu, copy: Configuration -> Image Model -> Local tab: Image Generator Configuration File, copy the contents of the text area and Paste it into the mk_config.ini file in the Generator's config folder.
python Service_atz2.py baseFor more detailed documents, please refer to the official website Full document.
- How to call Midjourney api via Discord api
- How to obtain a token of together.ai to call Llama3.1 or others api
- How to obtain a token of Stability.ai
- ...
Licenses for borrowed code:
- Laravel - https://github.com/laravel/laravel
- Stable Diffusion - https://github.com/Stability-AI/stablediffusion
- Diffusers - https://github.com/huggingface/diffusers
- GFPGAN - https://github.com/TencentARC/GFPGAN.git
- ESRGAN - https://github.com/xinntao/ESRGAN
- BasicSR - https://github.com/XPixelGroup/BasicSR
Please refer License


