DJTomato commited on
Commit
268f754
·
verified ·
1 Parent(s): 9da7a37

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +163 -27
README.md CHANGED
@@ -1,38 +1,174 @@
1
  ---
 
 
 
 
2
  tags:
3
  - ps4
4
  - playstation-4
 
5
  - garlic-diffusion
6
  - stable-diffusion
7
  - sdxl
8
- - homebrew
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ---
10
- # GarlicDiffusion — Official PS4 Pre-Converted Model Catalog (`PSD1` Q8_0)
11
 
12
- All **10 standalone `PSD1` (Q8_0) Stable Diffusion 1.5 & SDXL checkpoints** ready for direct 1-click HTTPS download inside **GarlicDiffusion** on PlayStation 4, PS4 Slim, and PS4 Pro (**Web UI → Models tab** or **PS4 TV → `[Up]`**).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  > 💬 **Want another model or checkpoint converted for PS4?**
15
- > Join our official **Support Discord ([discord.gg/Gbyq3kpGjc](https://discord.gg/Gbyq3kpGjc))** and drop your model suggestions in `#model-requests`! We also help with PS4 setup and connecting the `bz-cogs/aimage` Discord Bot to your console.
16
-
17
- ## All 10 Models Included
18
- | Model Folder | Arch | Size | Recommended Settings & Notes |
19
- |---|---|---:|---|
20
- | `WAI_Illustrious_v17_dmd2` | SDXL | 3716 MiB | Latest WAI-Illustrious v17 + DMD2 fast 6-step SDXL (~50s Quiet mode · CFG 1.0 · Recommended SDXL) |
21
- | `waiNSFWIllustrious_v140_dmd2` | SDXL | 3716 MiB | Proven razor-sharp WAI-Illustrious v14 + DMD2 fast 6-step SDXL (~50s Quiet mode · CFG 1.0) |
22
- | `Animagine_XL_4_dmd2` | SDXL | 3716 MiB | Clean modern anime SDXL (Animagine XL 4.0 + 6-step DMD2 · ~50s Quiet mode · CFG 1.0) |
23
- | `NoobAI_XL_1.1_dmd2` | SDXL | 3716 MiB | Crisp Danbooru-trained anime SDXL (NoobAI-XL 1.1 + 6-step DMD2 · ~50s Quiet mode · CFG 1.0) |
24
- | `waiNSFWIllustrious_v140_8step` | SDXL | 3716 MiB | 8-step Hyper-SD SDXL (Euler CFG 3.5 · Active negative prompt support · Standalone) |
25
- | `waiNSFWIllustrious_v140` | SDXL | 3716 MiB | Full 20-step non-distilled reference SDXL checkpoint (Euler a CFG 7.0 · ~228s Quiet mode) |
26
- | `MeinaMix_V11_8step` | SD15 | 1220 MiB | Ultra-fast 8-step glossy anime SD 1.5 (~26s native / ~46s 1080p RealESRGAN · Best for Base PS4 & Pro) |
27
- | `MeinaMix_V11` | SD15 | 1220 MiB | Full 20-step classic glossy anime SD 1.5 (Euler a CFG 7.0 · 1.5 GiB VRAM · Auto 1080p RealESRGAN) |
28
- | `DreamShaper_8` | SD15 | 1220 MiB | Versatile 2.5D fantasy, scenic & anime SD 1.5 (~75s 1080p RealESRGAN · Base PS4 & Pro) |
29
- | `Anything_V5` | SD15 | 1220 MiB | Crisp cel-shaded 2D anime SD 1.5 (~75s 1080p RealESRGAN · Base PS4 & Pro) |
30
-
31
- ## Support & Links
32
- - **Support Discord (Model Requests & Bot Help):** [https://discord.gg/Gbyq3kpGjc](https://discord.gg/Gbyq3kpGjc)
33
- - **Support on Ko-fi:** [https://ko-fi.com/djtomato](https://ko-fi.com/djtomato)
34
- - **GitHub Repository & PS4 PKG:** [https://github.com/DJTOMATO/GarlicDiffusion](https://github.com/DJTOMATO/GarlicDiffusion)
35
- - **Inspired by:** [Garlic LLM (`garlicllm.dev`)](https://garlicllm.dev) by Leonardo Alegría
36
-
37
- ## Credits & Licenses
38
- All model weights retain their upstream licenses (WAI-Illustrious under Fair AI Public License 1.0-SD; Animagine XL 4.0, NoobAI-XL 1.1, MeinaMix, DreamShaper, Anything V5 under Fair AI / CreativeML OpenRAIL-M; ByteDance Hyper-SD; Tianwei Yin DMD2 under MIT). Converted to `PSD1` (Q8_0 + FP16) for native PS4 AMD GCN GPU execution.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: gpl-3.0
3
+ language:
4
+ - en
5
+ - es
6
  tags:
7
  - ps4
8
  - playstation-4
9
+ - homebrew
10
  - garlic-diffusion
11
  - stable-diffusion
12
  - sdxl
13
+ - real-esrgan
14
+ - text-to-image
15
+ pipeline_tag: text-to-image
16
+ ---
17
+
18
+ <p align="center">
19
+ <img src="icon.png" width="180" alt="GarlicDiffusion: 3D shaded white garlic bulb on a radial deep-navy background">
20
+ </p>
21
+
22
+ <h1 align="center">GarlicDiffusion for PS4</h1>
23
+
24
+ <p align="center">
25
+ <b>Native Stable Diffusion 1.5, SDXL &amp; Real-ESRGAN 1080p/4K on your PS4's GPU.</b><br>
26
+ 100% Offline Inference · 10 Curated Models · In-App HTTPS Downloader · Web Studio &amp; Discord Bot API.
27
+ </p>
28
+
29
+ <p align="center">
30
+ <a href="https://huggingface.co/DJTomato/ps4-diffusion-models/resolve/main/Garlic-Diffusion-1.10.pkg"><img src="https://img.shields.io/badge/Download-6.69%20MB%20pkg-0070d1" alt="Download PS4 PKG"></a>
31
+ <a href="https://djtomato.github.io/GarlicDiffusion/"><img src="https://img.shields.io/badge/Website-GitHub%20Pages-1f6feb" alt="Website"></a>
32
+ <a href="https://github.com/DJTOMATO/GarlicDiffusion"><img src="https://img.shields.io/badge/Source-GPLv3-111111" alt="Source"></a>
33
+ <a href="https://discord.gg/Gbyq3kpGjc"><img src="https://img.shields.io/badge/Discord-Join%20%26%20Request%20Models-5865F2" alt="Support Discord"></a>
34
+ <a href="https://ko-fi.com/djtomato"><img src="https://img.shields.io/badge/Support-Ko--fi-FF5E5B" alt="Ko-fi"></a>
35
+ <a href="https://garlicllm.dev"><img src="https://img.shields.io/badge/Inspired%20by-Garlic%20LLM-3ddc97" alt="Garlic LLM"></a>
36
+ </p>
37
+
38
+ <p align="center">
39
+ <img src="hero.jpg" width="840" alt="GarlicDiffusion PS4 TV UI in the Garlic LLM deep-navy theme">
40
+ </p>
41
+
42
+ **GarlicDiffusion** is a PlayStation 4 and PS4 Pro homebrew application that runs **Stable Diffusion 1.5**, **Stable Diffusion XL (SDXL 1.0)**, and **Real-ESRGAN AnimeVideo v3 (`1080p Full HD` & `4K UHD`)** directly on the console's own AMD GCN GPU — with zero PC and zero cloud connection required while generating.
43
+
44
+ It is respectfully inspired by and builds upon **[Leonardo Alegría's Garlic LLM (`garlicllm.dev`)](https://github.com/leonardo-alegria/garlic-llm)**, sharing its bare-metal PS4 PM4 compute architecture, direct-memory ("Garlic") allocator, Selawik `PFN2` font renderer, and signature deep-navy visual style.
45
+
46
+ ---
47
+
48
+ ## Download the PS4 App (`v1.10`)
49
+
50
+ | | |
51
+ |---|---|
52
+ | **File** | [`Garlic-Diffusion-1.10.pkg`](https://huggingface.co/DJTomato/ps4-diffusion-models/resolve/main/Garlic-Diffusion-1.10.pkg) |
53
+ | **Size** | `7,012,352` bytes (`6.69 MB` — includes GCN kernels, CLIP tokenizer, Web Studio & Real-ESRGAN Anime v3 upscaler) |
54
+ | **SHA-256** | `90e6948e3ad2946e1a9a521b86ef1bc0ce8cc3637d66357823ff6ce8209016ec` |
55
+ | **Version** | `1.10` |
56
+ | **Title** | `GarlicDiffusion` |
57
+ | **Title ID** | `PSAI00003` (installs cleanly alongside Garlic LLM `PSAI00001`!) |
58
+
59
+ ---
60
+
61
+ ## Install in 3 Steps
62
+
63
+ A **PS4, PS4 Slim, or PS4 Pro** running **GoldHEN** (tested on firmware 9.00, 11.00, and all GoldHEN-supported firmwares). GarlicDiffusion is an ordinary userland homebrew package and contains no exploit.
64
+
65
+ 1. Download [`Garlic-Diffusion-1.10.pkg`](https://huggingface.co/DJTomato/ps4-diffusion-models/resolve/main/Garlic-Diffusion-1.10.pkg) onto a USB drive (or push over GoldHEN FTP) and install it via **GoldHEN → Package Installer**.
66
+ 2. Open **GarlicDiffusion** from the PS4 home screen.
67
+ 3. Press **Up** on the D-Pad (or open `http://<PS4-IP>:8081` → **Models** tab from any phone/PC browser on your Wi-Fi) and click **Download to PS4** on any of the **10 pre-converted models** in this repository. The PS4 downloads them directly over HTTPS (`libSceHttp` + `libSceSsl`) to `/data/garlic-diffusion/models/`.
68
+
69
  ---
 
70
 
71
+ ## All 10 Pre-Converted PS4 Models in This Repository
72
+
73
+ Every model folder in [`DJTomato/ps4-diffusion-models`](https://huggingface.co/DJTomato/ps4-diffusion-models/tree/main) is **100% standalone** (`unet.psd1`, `clip_l.psd1`, `clip_g.psd1` for SDXL, `vae.psd1`, and `preset.cfg`) quantized to custom `PSD1` (`Q8_0` weights + `FP16` scales) for bare-metal PS4 GCN execution:
74
+
75
+ | Model Folder | Arch | Size | Recommended Settings | PS4 Pro Time (`Quiet 20CU`) | Highlights |
76
+ | :--- | :---: | ---: | :--- | :---: | :--- |
77
+ | **`WAI_Illustrious_v17_dmd2`** ⭐ | `SDXL` | `3,716 MiB` | `6–8 steps · CFG 1.0 · LCM` | **`~17.7s`** (512) / **`~50.9s`** (16:9 1080p) / **`~67.6s`** (1080×1440) | **Flagship SDXL anime** (WAI v17 + DMD2 6-step fused) |
78
+ | **`waiNSFWIllustrious_v140_dmd2`** ⭐ | `SDXL` | `3,716 MiB` | `6–8 steps · CFG 1.0 · LCM` | **`~51.0s`** (16:9 1080p) / **`~67.6s`** (1080×1440) | Razor-sharp WAI v14 + DMD2 6-step SDXL |
79
+ | **`Animagine_XL_4_dmd2`** | `SDXL` | `3,716 MiB` | `6–8 steps · CFG 1.0 · LCM` | **`~50.8s`** (768×1024) / **`~67.6s`** (1080×1440) | Clean modern anime aesthetics (Animagine XL 4.0 + DMD2) |
80
+ | **`NoobAI_XL_1.1_dmd2`** | `SDXL` | `3,716 MiB` | `6–8 steps · CFG 1.0 · LCM` | **`~50.8s`** (768×1024) / **`~67.6s`** (1080×1440) | Crisp Danbooru tag understanding (NoobAI-XL 1.1 + DMD2) |
81
+ | **`waiNSFWIllustrious_v140_8step`** | `SDXL` | `3,716 MiB` | `8 steps · CFG 3.5 · Euler` | **`~103.5s`** (768×1024) / **`~120.4s`** (1080×1440) | 8-step Hyper-SD SDXL with active negative prompt guidance |
82
+ | **`waiNSFWIllustrious_v140`** | `SDXL` | `3,716 MiB` | `20 steps · CFG 7.0 · Euler a` | **`~228.0s`** (768×1024) | Full 20-step non-distilled reference SDXL checkpoint |
83
+ | **`MeinaMix_V11_8step`** ⭐ | `SD 1.5` | `1,220 MiB` | `8 steps · CFG 3.5 · Euler` | **`~17.3s`** (4-stp) / **`~26.2s`** (512) / **`~46.5s`** (1080×1620) | **Best for Base PS4 / Slim & Fast 1080p!** Only 1.54 GiB VRAM |
84
+ | **`MeinaMix_V11`** | `SD 1.5` | `1,220 MiB` | `20 steps · CFG 7.0 · Euler a` | **`~87.2s`** (1080×1620 HD) | Classic 20-step glossy anime SD 1.5 |
85
+ | **`DreamShaper_8`** | `SD 1.5` | `1,220 MiB` | `20 steps · CFG 6.5 · Euler a` | **`~87.2s`** (1080×1620 HD) / **`~105.0s`** (16:9 1080p) | Fantasy landscapes, scenic art & 2.5D/2D portraits |
86
+ | **`Anything_V5`** | `SD 1.5` | `1,220 MiB` | `20 steps · CFG 7.0 · Euler a` | **`~87.2s`** (1080×1620 HD) / **`~105.0s`** (16:9 1080p) | Classic cel-shaded 2D anime SD 1.5 |
87
 
88
  > 💬 **Want another model or checkpoint converted for PS4?**
89
+ > Join our official **[Support Discord (`discord.gg/Gbyq3kpGjc`)](https://discord.gg/Gbyq3kpGjc)** and post your requests in `#model-requests`!
90
+
91
+ ---
92
+
93
+ ## Sample 1080p Outputs Rendered Natively on PS4 Pro (`Quiet 20CU`)
94
+
95
+ <p align="center">
96
+ <img src="sample_widescreen.jpg" width="840" alt="16:9 1920x1080 Hatsune Miku rendered on PS4 Pro in 50.94s">
97
+ <br>
98
+ <sub><b>16:9 Full HD (<code>1024×576 → 1920×1080</code>)</b> · <code>WAI_Illustrious_v17_dmd2</code> · 6 steps CFG 1.0 LCM · <b>50.94s total</b> (19.56s UNet + 14.37s VAE + 12.04s Real-ESRGAN) in Quiet (20 CU) mode.</sub>
99
+ </p>
100
+
101
+ <p align="center">
102
+ <img src="sample_scenic.jpg" width="840" alt="16:9 1920x1080 Floating Sky Sanctuary rendered on PS4 Pro in 51.16s">
103
+ <br>
104
+ <sub><b>16:9 Full HD Scenic (<code>1024×576 → 1920×1080</code>)</b> · <code>WAI_Illustrious_v17_dmd2</code> · 6 steps CFG 1.0 LCM · <b>51.16s total</b> in Quiet (20 CU) mode. Explore all 45+ samples on our <a href="https://djtomato.github.io/GarlicDiffusion/">Website</a> &amp; <a href="https://djtomato.github.io/GarlicDiffusion/scenic.html">Scenic Gallery</a>.</sub>
105
+ </p>
106
+
107
+ ---
108
+
109
+ ## What You Get
110
+
111
+ | Feature | Details |
112
+ |---|---|
113
+ | **Dual SD 1.5 & SDXL GCN Engine** | 22 custom bare-metal OpenCL AMD GCN (`bonaire` ISA) kernels dispatched via raw PM4 command packets (`libSceGnmDriver`). |
114
+ | **Base PS4, Slim & Pro Ready** | Auto-detects console hardware: uses `1.54 GiB` for SD 1.5 and `4.04 GiB` (Base PS4 24×24 tiled VAE) or `4.21 GiB` (PS4 Pro) for full SDXL. |
115
+ | **Built-In 1080p & 4K Upscaler** | Ships with **Real-ESRGAN AnimeVideo v3** (`upscaler.psd1`, 2.4 MiB) inside the PKG for on-console `1080p Full HD` (`~9–17s`) and `4K UHD` (`3840×2160`) upscaling. |
116
+ | **80+ Presets, Styles & Characters** | Seeded with **20 Prompt Presets**, **22 Art Styles** (Shinkai, Ghibli, 2D Anime Fix for DreamShaper, Manga, Cyberpunk, Ukiyo-e), and **38 Character Presets** across 20 series. |
117
+ | **Hardware CU Thermal Scaling** | 4 live GPU power modes (**Silent 14CU**, **Quiet 20CU**, **Balanced 25CU**, **Turbo 36CU**) via `SH_STATIC_THREAD_MGMT` masks + inter-block cooldown breathers. |
118
+ | **Web Studio, A1111 & Discord API** | Full Web UI on port `8081`, Automatic1111 PNG `parameters` metadata, plus `/sdapi/v1/txt2img` for **`bz-cogs/aimage` Discord bots** and `/v1/images/generations` for OpenAI clients. |
119
+
120
+ ---
121
+
122
+ ## PS4 Controller Map & Web / Discord API
123
+
124
+ | Button | Action on PS4 TV UI |
125
+ |---|---|
126
+ | **Cross (`✕`)** | Open PS4 On-Screen Keyboard (or USB Keyboard) to edit Prompt |
127
+ | **Triangle (`△`)** | Generate Image (or Recreate in Gallery) |
128
+ | **Square (`□`)** | Open On-Console **Artwork Gallery** (`Left/Right` browse, `R1` full-screen, `L3` upscale 1080p) |
129
+ | **Circle (`○`)** | Open **Credits, Licenses & Scannable QR Codes** screen (or **Cancel** while generating) |
130
+ | **D-Pad Left / Right** | Cycle through **20 Saved Prompt Presets** |
131
+ | **D-Pad Down** | Cycle through **38 Built-In Character Presets** |
132
+ | **D-Pad Up / OPTIONS** | Open **In-App Model Manager & Hugging Face HTTPS Downloader** |
133
+ | **Touchpad Click** | Cycle through **22 Reusable Art Styles** |
134
+ | **L1 / R1** | Cycle Resolution (`512×512`, `512×768`, `768×512`, `896×512` 16:9, `1024×576` 16:9, `768×1024`, `1024×1024`, `832×1216`) |
135
+ | **L2 / R2** | Decrease / Increase Sampling Steps (`1..40`) |
136
+ | **L3 (Left Stick Click)** | Cycle AI Upscaler (`Native 1×` → `1080p HD` → `2× HD` → `4K UHD`) |
137
+ | **R3 (Right Stick Click)** | Cycle GPU Power & Fan Mode (`Quiet 20CU` → `Balanced 25CU` → `Turbo 36CU` → `Silent 14CU`) |
138
+
139
+ <p align="center">
140
+ <img src="credits_qr.jpg" width="840" alt="GarlicDiffusion PS4 TV Credits and Scannable QR Codes Screen">
141
+ </p>
142
+
143
+ ### REST API Examples (`Port 8081`)
144
+
145
+ ```bash
146
+ # Check live GPU status, active model & benchmark TFLOPS
147
+ curl http://192.168.1.29:8081/status
148
+
149
+ # Automatic1111 WebUI compatible txt2img (works out-of-the-box with bz-cogs/aimage Discord bots!)
150
+ curl http://192.168.1.29:8081/sdapi/v1/txt2img -H "Content-Type: application/json" -d '{"prompt":"1girl, hatsune miku, cherry blossoms, masterpiece","width":768,"height":1024,"steps":6,"cfg_scale":1.0,"sampler_name":"LCM","enable_hr":true}'
151
+ ```
152
+
153
+ ---
154
+
155
+ ## ⚠️ Hardware, Thermal & Liability Disclaimer
156
+
157
+ GarlicDiffusion is distributed under the **GNU General Public License v3.0 (GPLv3)** on an **"AS IS"** basis, **WITHOUT WARRANTY OF ANY KIND**. In no event shall the authors, contributors, or upstream copyright holders be liable for any console overheating, fan/APU wear, thermal shutdown, data loss, or hardware damage. PlayStation 4 consoles are 7–13 year old hardware: always ensure unobstructed ventilation, clean dust and aging thermal paste, and use **Quiet (`20 CU`, default)** or **Silent (`14 CU`)** mode for extended sessions.
158
+
159
+ ---
160
+
161
+ ## Credits & Component Licenses
162
+
163
+ | Component | Author / Source | License |
164
+ |---|---|---|
165
+ | **GarlicDiffusion App, GCN Kernels & Web Studio** | [DJTOMATO/GarlicDiffusion](https://github.com/DJTOMATO/GarlicDiffusion) ([Ko-fi](https://ko-fi.com/djtomato) · [Discord](https://discord.gg/Gbyq3kpGjc)) | **GNU GPLv3** |
166
+ | **Garlic LLM Foundation, PM4 Architecture & UI Theme** | [Leonardo Alegría (`garlicllm.dev`)](https://github.com/leonardo-alegria/garlic-llm) ([Ko-fi](https://ko-fi.com/leonardoalegria)) | **GNU GPLv3** |
167
+ | **WAI-Illustrious-SDXL (v14 / v17)** | WAI / OnomaAI Illustrious | Fair AI Public License 1.0-SD |
168
+ | **Animagine XL 4.0 & NoobAI-XL 1.1** | Cagliostro Research Lab / Laxhar Lab | Fair AI Public License 1.0-SD |
169
+ | **DMD2 & Hyper-SD Distillation LoRAs** | Tianwei Yin et al. (MIT) / ByteDance | MIT / CreativeML Open RAIL++-M |
170
+ | **MeinaMix V11 / DreamShaper 8 / Anything V5** | Meina / Lykon / Community | CreativeML Open RAIL-M |
171
+ | **Real-ESRGAN AnimeVideo v3 (`SRVGGNetCompact`)** | Xintao Wang et al. (Tencent ARC) | BSD-3-Clause |
172
+ | **OpenOrbis PS4 Toolchain & Selawik UI Font** | OpenOrbis Team / Microsoft Corporation | GNU GPLv3 / SIL OFL 1.1 |
173
+
174
+ Not affiliated with or endorsed by Sony Interactive Entertainment. PlayStation and PS4 are trademarks of their respective owners.