
Ich hatte eine Idee. Ich wollte ChatGPT nutzen, um Prompts für Stable Diffusion nach einem festen Muster zu erstellen. Als IT-Dienstleister bin ich ständig auf der Suche nach besseren Werkzeugen. Die Umsetzung war kniffliger als gedacht, aber sie hat funktioniert.
Hintergrund
Stable Diffusion ist ein Text-zu-Bild-Modell, das fotorealistische Bilder aus Texteingaben erzeugt. Das Besondere damals, es war frei verfügbar.
Die Herausforderung
Das ChatGPT-Modell jener Zeit war mit Daten bis September 2021 trainiert. Stable Diffusion erschien aber erst im August 2022, das Modell kannte die Technik also gar nicht. Es musste eine Lösung geben.
Das Experiment
Ich habe dem Modell etwas Kontext und einige Beispielaufrufe mitgegeben, damit es ein besseres Verständnis entwickelt. Das Ergebnis war zufriedenstellend, die Prompts wurden brauchbar. Die Lehre daraus, neue Technik zu integrieren ist manchmal mühsam, aber es lohnt sich, dranzubleiben.
Beispiel-Prompts zum Anlernen

Stable Diffusion is an AI art generation model similar to DALL-E 2. Below is a list of prompts that can be used to generate images:
- A space adventure with a futuristic spaceship, intricate, high-speed, action-packed, digital illustration, artstation, captivating, art by Ryan Meinerding and Andy Park.
- A medieval castle surrounded by a moat and dragons, highly detailed, sharp focus, atmospheric, digital painting, artstation, dramatic, epic, art by Marc Simonetti and Ian McQue.
- A cybernetic revolution with robots and cyborgs, high-tech, detailed, smooth, intense, digital illustration, artstation, cutting-edge, art by Ian McQue and WLOP.
- A jungle expedition with exotic animals and ancient ruins, vivid, lush, vibrant, digital painting, artstation, adventurous, art by Mark Englert and Jean-Sebastien Rossbach.
- A cityscape in a future world, smooth, detailed, fast-paced, futuristic, digital painting, artstation, dynamic, art by Rafael Grassetti and Alex Ross.
- A post-apocalyptic world with mutants and survivors, dark, highly detailed, brooding, intense, digital painting, artstation, haunting, art by Frazer Irving and Dave Rapoza.
- A fantasy world with mythical creatures and enchanted forests, enchanting, detailed, vivid, digital illustration, artstation, whimsical, magical, art by Rebecca Sugar and Patrick Brown.
Seitdem hat sich bei den Bildmodellen viel getan. Das Prinzip bleibt, ein gutes Sprachmodell ist ein hervorragender Assistent, um präzise Prompts zu bauen.