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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation locale PPT Master (modifié) — Guide complet
|
| 2 |
+
|
| 3 |
+
## Prérequis
|
| 4 |
+
|
| 5 |
+
- Windows 10/11 avec une RTX 5070 Ti
|
| 6 |
+
- Python 3.10+ installé (https://www.python.org/downloads/) → cocher "Add to PATH"
|
| 7 |
+
- Git installé (https://git-scm.com/downloads)
|
| 8 |
+
- ~15 Go d'espace disque (dont ~6 Go pour un checkpoint SDXL)
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## Étape 1 : Cloner PPT Master
|
| 13 |
+
|
| 14 |
+
Ouvre un terminal (PowerShell ou CMD) :
|
| 15 |
+
|
| 16 |
+
```bash
|
| 17 |
+
cd C:\Users\TON_USER\Documents
|
| 18 |
+
git clone https://github.com/hugohe3/ppt-master.git
|
| 19 |
+
cd ppt-master
|
| 20 |
+
pip install -r requirements.txt
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Étape 2 : Installer ComfyUI
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
cd C:\Users\TON_USER\Documents
|
| 29 |
+
git clone https://github.com/comfyanonymous/ComfyUI.git
|
| 30 |
+
cd ComfyUI
|
| 31 |
+
pip install -r requirements.txt
|
| 32 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Vérifie que ta RTX est détectée :
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
python -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_name(0))"
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Résultat attendu :
|
| 42 |
+
```
|
| 43 |
+
True
|
| 44 |
+
NVIDIA GeForce RTX 5070 Ti
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## Étape 3 : Télécharger un modèle image
|
| 50 |
+
|
| 51 |
+
Télécharge un checkpoint Stable Diffusion dans `ComfyUI/models/checkpoints/` :
|
| 52 |
+
|
| 53 |
+
Option A (recommandée, qualité top) :
|
| 54 |
+
- **Juggernaut XL** : https://civitai.com/models/133005/juggernaut-xl
|
| 55 |
+
- Télécharge le fichier `.safetensors` et place-le dans `ComfyUI/models/checkpoints/`
|
| 56 |
+
|
| 57 |
+
Option B (officiel, plus léger) :
|
| 58 |
+
- **SDXL Base** : https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## Étape 4 : Appliquer les modifications PPT Master
|
| 63 |
+
|
| 64 |
+
Copie les fichiers du dossier `modifications/` dans ton clone PPT Master :
|
| 65 |
+
|
| 66 |
+
```
|
| 67 |
+
modifications/backend_comfyui.py → ppt-master/skills/ppt-master/scripts/image_backends/backend_comfyui.py
|
| 68 |
+
modifications/openrouter_llm.py → ppt-master/skills/ppt-master/scripts/openrouter_llm.py
|
| 69 |
+
modifications/.env → ppt-master/.env
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Puis édite `ppt-master/.env` et ajuste les chemins :
|
| 73 |
+
|
| 74 |
+
```env
|
| 75 |
+
COMFYUI_DIR=C:\Users\TON_USER\Documents\ComfyUI
|
| 76 |
+
COMFYUI_MODEL=juggernautXL_v9.safetensors
|
| 77 |
+
COMFYUI_FALLBACK=error
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## Étape 5 : Modifier image_gen.py
|
| 83 |
+
|
| 84 |
+
Ouvre `ppt-master/skills/ppt-master/scripts/image_gen.py` et ajoute le backend ComfyUI.
|
| 85 |
+
|
| 86 |
+
Dans la section `IMAGE_ENV_PREFIXES`, ajoute `"COMFYUI_",` à la fin de la liste.
|
| 87 |
+
|
| 88 |
+
Dans le dictionnaire `BACKEND_REGISTRY`, ajoute avant `"openrouter"` :
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
"comfyui": {
|
| 92 |
+
"module": "backend_comfyui",
|
| 93 |
+
"tier": "core",
|
| 94 |
+
"label": "ComfyUI Local",
|
| 95 |
+
"default_model": "local-comfyui",
|
| 96 |
+
"key_hint": "COMFYUI_SERVER / COMFYUI_WORKFLOW / COMFYUI_MODEL",
|
| 97 |
+
"aliases": ["comfy", "local"],
|
| 98 |
+
},
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
## Étape 6 : Tester
|
| 104 |
+
|
| 105 |
+
### Test ComfyUI seul (lance-le d'abord) :
|
| 106 |
+
|
| 107 |
+
```bash
|
| 108 |
+
cd C:\Users\TON_USER\Documents\ComfyUI
|
| 109 |
+
python main.py --listen 127.0.0.1 --port 8188
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
Tu dois voir dans la console : `To see the GUI go to: http://127.0.0.1:8188`
|
| 113 |
+
|
| 114 |
+
### Test génération d'image :
|
| 115 |
+
|
| 116 |
+
Dans un autre terminal :
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
cd C:\Users\TON_USER\Documents\ppt-master
|
| 120 |
+
python skills/ppt-master/scripts/image_gen.py "A cinematic dark fantasy throne room" --backend comfyui --aspect_ratio 16:9 --image_size 1K -o test_images
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
### Test LLM OpenRouter :
|
| 124 |
+
|
| 125 |
+
```bash
|
| 126 |
+
cd C:\Users\TON_USER\Documents\ppt-master
|
| 127 |
+
python skills/ppt-master/scripts/openrouter_llm.py "Dis bonjour"
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## Étape 7 : Utiliser PPT Master normalement
|
| 133 |
+
|
| 134 |
+
PPT Master est conçu pour fonctionner dans un IDE agent (Claude Code, Cursor, etc.).
|
| 135 |
+
L'agent lit `skills/ppt-master/SKILL.md` et suit le workflow.
|
| 136 |
+
|
| 137 |
+
Mais avec les modifications, tu peux aussi l'utiliser "à la main" en suivant le pipeline :
|
| 138 |
+
|
| 139 |
+
1. `python scripts/project_manager.py init mon_projet --format ppt169`
|
| 140 |
+
2. Écrire `design_spec.md` et `spec_lock.md` (ou utiliser OpenRouter pour les générer)
|
| 141 |
+
3. Générer les images : `python scripts/image_gen.py "prompt" --backend comfyui -o mon_projet/images`
|
| 142 |
+
4. Créer les SVG dans `svg_output/`
|
| 143 |
+
5. `python scripts/total_md_split.py mon_projet`
|
| 144 |
+
6. `python scripts/finalize_svg.py mon_projet`
|
| 145 |
+
7. `python scripts/svg_to_pptx.py mon_projet`
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Résumé des fichiers modifiés/ajoutés
|
| 150 |
+
|
| 151 |
+
| Fichier | Action |
|
| 152 |
+
|---------|--------|
|
| 153 |
+
| `.env` | NOUVEAU — config OpenRouter + ComfyUI |
|
| 154 |
+
| `scripts/image_backends/backend_comfyui.py` | NOUVEAU — backend ComfyUI local |
|
| 155 |
+
| `scripts/openrouter_llm.py` | NOUVEAU — client LLM OpenRouter |
|
| 156 |
+
| `scripts/image_gen.py` | MODIFIÉ — ajout du backend comfyui au registre |
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## Dépannage
|
| 161 |
+
|
| 162 |
+
| Problème | Solution |
|
| 163 |
+
|----------|----------|
|
| 164 |
+
| `torch.cuda.is_available()` = False | Réinstalle PyTorch avec CUDA : `pip install torch --index-url https://download.pytorch.org/whl/cu128` |
|
| 165 |
+
| ComfyUI ne démarre pas | Vérifie que le port 8188 est libre, que Python trouve torch |
|
| 166 |
+
| Image placeholder au lieu de vraie image | Vérifie `COMFYUI_MODEL` dans `.env` et que le fichier existe dans `ComfyUI/models/checkpoints/` |
|
| 167 |
+
| OpenRouter erreur 401 | La clé API est peut-être expirée, vérifie sur openrouter.ai |
|
| 168 |
+
| `image_gen.py` ne trouve pas `comfyui` | Vérifie que tu as bien ajouté l'entrée dans `BACKEND_REGISTRY` de `image_gen.py` |
|