Add local FLUX image editing

This commit is contained in:
Mikei386
2026-08-30 10:07:40 +02:00
parent b18bc8964a
commit 6af25cf30c
13 changed files with 209 additions and 64 deletions
+3 -3
View File
@@ -573,7 +573,7 @@ services:
IMAGE_DIR: /data/images
IMAGE_WORKER_URL: http://image-worker:8086
IMAGE_WORKER_TOKEN: "${CONTROLLER_TOKEN:?CONTROLLER_TOKEN is required}"
IMAGE_MODEL_NAME: Z-Image-Turbo
IMAGE_MODEL_NAME: FLUX.2-klein-4B
CHAT_IMAGE_ALLOW_REMOTE_URLS: "false"
ENABLE_IMAGE_GENERATION: "true"
ENABLE_TTS: "true"
@@ -628,13 +628,13 @@ services:
read_only: true
tmpfs: ["/tmp:size=1g,mode=1777"]
volumes:
- "${Z_IMAGE_MODEL_DIR:-/data/models/Z-Image-Turbo}:/models/Z-Image-Turbo:ro"
- "${FLUX_MODEL_DIR:-/data/models/FLUX.2-klein-4B}:/models/FLUX.2-klein-4B:ro"
- router-images:/data/images
environment:
NVIDIA_VISIBLE_DEVICES: ${IMAGE_GPU_DEVICES:-1}
NVIDIA_DRIVER_CAPABILITIES: compute,utility
WORKER_TOKEN: "${CONTROLLER_TOKEN:?CONTROLLER_TOKEN is required}"
Z_IMAGE_MODEL_DIR: /models/Z-Image-Turbo
FLUX_MODEL_DIR: /models/FLUX.2-klein-4B
IMAGE_DIR: /data/images
networks: [inference]
security_opt: ["no-new-privileges:true"]