spawngen / examples /llm-prompt.json
LostBeard's picture
SpawnGen Studio f0ac219 (the GitHub Pages AOT build, base href /) (part 2)
f638bf2 verified
Raw History Blame Contribute Delete
1.78 kB
{
"1": {
"class_type": "TextGeneration",
"inputs": {
"prompt": "Write one vivid sentence describing a single red apple on a wooden table, for an image generator. Answer with the sentence only.",
"system_prompt": "You write short prompts for image generators.",
"model": "qwen2.5-0.5b-instruct",
"max_new_tokens": 60,
"temperature": 0
}
},
"2": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "sd_turbo"
}
},
"3": {
"class_type": "CLIPTextEncode",
"inputs": {
"text": [
"1",
0
],
"clip": [
"2",
1
]
}
},
"4": {
"class_type": "CLIPTextEncode",
"inputs": {
"text": "",
"clip": [
"2",
1
]
}
},
"5": {
"class_type": "EmptyLatentImage",
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
}
},
"6": {
"class_type": "KSampler",
"inputs": {
"model": [
"2",
0
],
"positive": [
"3",
0
],
"negative": [
"4",
0
],
"latent_image": [
"5",
0
],
"seed": 7,
"steps": 1,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1
}
},
"7": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"6",
0
],
"vae": [
"2",
2
]
}
},
"8": {
"class_type": "SaveImage",
"inputs": {
"images": [
"7",
0
],
"filename_prefix": "SpawnGen"
}
},
"9": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"1",
0
]
}
}
}