Local Llm Text To Image logo

Local Llm Text To Image

Organization
Seeed-Projects
local-llm-text-to-image

Run local text-to-image generation on Jetson Orin NX 16GB using Stable Diffusion. Covers three approaches — KerasCV, Hugging Face diffusers, and NVIDIA Jetson Containers (AUTOMATIC1111 WebUI). Includes a Flask API for on-demand image generation. Requires JetPack 5.1.1+.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill namelocal-llm-text-to-image
Stars
58
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Seeed-Projects on GitHub. Read the source before you install it.

Installation

Install the Local Llm Text To Image AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/local-llm-text-to-image
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/local-llm-text-to-image .claude/skills/local-llm-text-to-image
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Local Llm Text To Image in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Local Llm Text To Image on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Local Llm Text To Image is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Text-to-Image with Stable Diffusion on Jetson

Generate images from text prompts locally on Jetson using Stable Diffusion. Three deployment paths: KerasCV with TensorFlow, Hugging Face diffusers with PyTorch, and NVIDIA's containerized AUTOMATIC1111 WebUI.


Execution model

Run one phase at a time. After each phase:

  • Relay all output to the user.
  • If output contains [STOP] → stop, consult the failure decision tree.
  • If output ends with [OK] → tell the user "Phase N complete" and proceed.

Prerequisites

RequirementDetail
HardwareJetson Orin NX 16GB (e.g. reComputer J4012)
JetPack5.1.1+
Storage~20 GB free (models are large)
RAM tipsDisable desktop GUI to save ~800 MB. Consider disabling ZRAM and using swap.

Path A — KerasCV Stable Diffusion

Phase A1 — Create virtual environment and install TensorFlow (~10 min)

bash
sudo apt install python3.8-venv
python3 -m venv kerasStableEnvironment
source kerasStableEnvironment/bin/activate
cd kerasStableEnvironment
pip install -U pip
pip install -U numpy grpcio absl-py py-cpuinfo psutil portpicker six mock requests gast h5py astor termcolor protobuf keras-applications keras-preprocessing wrapt google-pasta setuptools testresources

Install TensorFlow for your JetPack version (example for JP 5.1.1):

bash
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v511 tensorflow==2.12.0+nv23.05

Verify:

bash
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

[OK] when GPU device is listed.

Phase A2 — Install PyTorch and KerasCV (~5 min)

bash
sudo apt install libopenblas-dev
pip install --no-cache https://developer.download.nvidia.com/compute/redist/jp/v511/pytorch/torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
pip install keras-cv==0.5.1 keras==2.12.0 Pillow

Verify PyTorch CUDA:

bash
python -c "import torch; print(torch.cuda.is_available())"

[OK] when both return True/GPU.

Phase A3 — Generate an image (~2–5 min)

bash
cat > generate_image.py << 'PYEOF'
import keras_cv
import keras
from PIL import Image

keras.mixed_precision.set_global_policy("mixed_float16")
model = keras_cv.models.StableDiffusion(img_width=512, img_height=512, jit_compile=True)
prompt = "a cute magical flying dog, fantasy art, golden color, high quality"
image = model.text_to_image(prompt, num_steps=25, batch_size=1)
Image.fromarray(image[0]).save("keras_generate_image.png")
print("Image saved: keras_generate_image.png")
PYEOF
python generate_image.py

[OK] when keras_generate_image.png is created.


Path B — Hugging Face Diffusers

Phase B1 — Create virtual environment and install PyTorch (~5 min)

bash
python3 -m venv huggingfaceTesting
source huggingfaceTesting/bin/activate
cd huggingfaceTesting
sudo apt install libopenblas-dev
pip install --no-cache https://developer.download.nvidia.com/compute/redist/jp/v511/pytorch/torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
pip install diffusers transformers accelerate

[OK] when all packages install.

Phase B2 — Generate with Stable Diffusion v1.5 (~5–10 min first run)

bash
cat > stableDiffusion.py << 'PYEOF'
from diffusers import StableDiffusionPipeline
import torch

model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "a master jedi cat in star wars holding a lightsaber, cinematic lighting"
image = pipe(prompt).images[0]
image.save("cat_jedi.png")
print("Image saved: cat_jedi.png")
PYEOF
python stableDiffusion.py

First run downloads model checkpoints (~4 GB).

[OK] when cat_jedi.png is created.

Phase B3 — Try SDXL-Turbo (optional, faster)

bash
cat > sdxl_turbo.py << 'PYEOF'
from diffusers import AutoPipelineForText2Image
import torch

pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
pipe.to("cuda")
prompt = "full body, cat dressed as a Viking, with weapon, hyper-detail, cinematic"
image = pipe(prompt=prompt, num_inference_steps=1, guidance_scale=0.0).images[0]
image.save("sdxl-turbo.png")
print("Image saved: sdxl-turbo.png")
PYEOF
python sdxl_turbo.py

[OK] when image is generated (~30 s).


Path C — NVIDIA Jetson Containers (AUTOMATIC1111 WebUI)

Phase C1 — Install Jetson Containers (~3 min)

bash
git clone https://github.com/dusty-nv/jetson-containers
cd jetson-containers
sudo apt update
sudo apt install -y python3-pip
pip3 install -r requirements.txt

[OK] when requirements install.

Phase C2 — Run Stable Diffusion WebUI container (~10–20 min first run)

bash
cd jetson-containers
./run.sh $(./autotag stable-diffusion-webui)

Accept the container pull when prompted. The container downloads the model and starts the WebUI on port 7860.

Open browser: http://<jetson-ip>:7860

[OK] when the AUTOMATIC1111 WebUI loads with a checkpoint selected. [STOP] if no checkpoint appears — check disk space with df -h.

Phase C3 — Add Stable Diffusion XL model (optional)

bash
CONTAINERS_DIR=~/jetson-containers
MODEL_DIR=$CONTAINERS_DIR/data/models/stable-diffusion/models/Stable-diffusion/
sudo chown -R $USER $MODEL_DIR
wget -P $MODEL_DIR https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors

Refresh the checkpoint dropdown in the WebUI.

[OK] when SDXL model appears in the dropdown.


Failure decision tree

SymptomAction
TensorFlow GPU not detectedVerify JetPack version matches TF wheel. Check CUDA: nvcc --version.
PyTorch torch.cuda.is_available() returns FalseReinstall PyTorch wheel matching your JetPack. Check nvidia-smi.
OOM during image generationReduce image size (e.g. 256x256). Disable desktop GUI. Enable swap.
Model download failsCheck disk space: df -h. Clear cache: rm -rf ~/.cache/huggingface.
AUTOMATIC1111 no checkpointDisk full. Free space and restart container.
Container gets killedNot enough RAM/swap. Add swap: sudo fallocate -l 8G /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile.
Flask API not accessibleCheck firewall: sudo ufw allow 8080. Verify Flask is running on 0.0.0.0.
pip install keras-cv failsCheck Python version matches (3.8 for JP 5.1.1). Try pip install --no-cache-dir.

Reference files

  • references/source.body.md — Full Seeed Wiki tutorial with all three deployment paths, Flask API code, screenshots, and additional model examples from Civitai (reference only)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Local Llm Text To Image AI skill do?

Run local text-to-image generation on Jetson Orin NX 16GB using Stable Diffusion. Covers three approaches — KerasCV, Hugging Face diffusers, and NVIDIA Jetson Containers (AUTOMATIC1111 WebUI). Includes a Flask API for on-demand image generation. Requires JetPack 5.1.1+.

Why use Local Llm Text To Image on TypingMind?

Because you install it once and use it with any model. Local Llm Text To Image is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Local Llm Text To Image in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/local-llm-text-to-image. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Local Llm Text To Image?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Local Llm Text To Image?

As many as you like. As long as a model supports skills, you can use Local Llm Text To Image with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Local Llm Text To Image AI skill free?

Yes. It is published on GitHub by Seeed-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇