Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
Merge branch 'macos-optimization': Kokon's own Mac engine
Gabriele Lozupone7c3e256782b4
diff --cc docs/STATUS.mdindex a30a8bc,4ff08c0..f4d1ab8--- a/docs/STATUS.md+++ b/docs/STATUS.md@@@ -22,13 -18,21 +22,21 @@@ Windows, macOS (Apple Silicon, 15+) an## Known issues-- **AMD RX 6000 (RDNA2) cards are slow on Vulkan** (an RX 6700 XT takes about 41 s per step at 1 MP).- Most of each step (over 80 % at 1 MP) goes into the attention kernel, which is slow on GPUs without matrix cores.- RX 7000 and RX 9000 cards have them and work well (RX 9070 XT: 1.75 s per step at 1 MP).+- **AMD RX 6000 (RDNA2) cards: turn flash attention off** (Settings → Performance). On GPUs without matrix cores+ the flash-attention path is about 10x slower, and Kokon turns it on by default: an RX 6700 XT goes from 21 to+ 4.5 s per step at 1024x704. The next update lets the engine choose per card.- **LoRA is beta** and tested on Windows only; reports from macOS and Linux are welcome([#33](https://github.com/GabrieleLozupone/kokon/issues/33) has a product-shot test).- - **Macs are slow** compared with NVIDIA cards (about 4 minutes for 1 MP on an M2 Pro 16 GB). Engine speed-ups are- being measured.+ - **Macs are slow** compared with NVIDIA cards (about 4 minutes for 1 MP on an M2 Pro 16 GB). Kokon's own Mac+ engine is in development on the `macos-optimization` branch (`engine-mac/`, not released): text to image,+ Prompt+ (a prompt written in about 7–9 s), edits with reference images (Prompt+ looking at them too), brushed edits and+ extending an image, about 64–67 s for 1 MP text to image and ~106 s for a 1 MP edit on the same Mac (peak memory 5 GB),+ as an experimental switch in Settings → Performance (off by default). Since then (2026-10-26, not yet re-measured as+ whole images): one denoising step ~5 % faster, the decoder ~1 s faster per image, an edit's image reading 2.6 → 1.7 s. LoRAs and the upscaler still need the standard+ engine (not planned for its first release). On the branch it now ships inside Kokon.app (1.7 MB) and Kokon offers it once at start+ on Macs with 16 GB or more (planned for 0.11.1, with rollback in Settings). A "Benchmark this Mac" button in Settings → Performance runs the engine's+ bench from the app (~10 min) and gives the report to paste in+ [Discussion #43](https://github.com/GabrieleLozupone/kokon/discussions/43).- The Windows installer is not code-signed: SmartScreen or Smart App Control may block it (README FAQ: Unblock).- HEIC photos can't be opened on Linux yet.diff --cc src/lib/logic.test.tsindex f1e197d,af0a91f..6f132df--- a/src/lib/logic.test.ts+++ b/src/lib/logic.test.ts@@@ -1,8 -1,10 +1,10 @@@import { describe, expect, it } from "vitest";import {+ macEngineOfferDue,+ macBenchProgress,activeLoras, activeOverrides, buildRequest, composing, editing, reviewRequest, wantsPromptReview, toggleLora, MAX_LORAS, jobPercent, compareBase, composerFromRecord, enhancerApplies, diffPixels, emptyComposer, expansionPixels, expansionPreset, jobLabel, jobSecondsLeft, lutInfo, moveRef, needsPrompt, normalizeQuality, persistentAdvanced, pipelineSummary,planPipeline, remainingSeconds, sizeForWidth, timeAgo, upscaleRequest, upscaleTargets, versionLabels, type JobClock, type Ref,- neighbourAfterRemoval, pageOutdated, previewIndex, starPromptDue, STAR_PROMPT_AFTER, formatBytes, formatDuration, installItemShort, installItemText, installProgress, installStep, installTimeLeft, timelineLinks, undoTarget, aspectLabel, parseRatio, sizeForRatio, expandToRatio, expandToSize, arcLayout,+ neighbourAfterRemoval, pageOutdated, previewIndex, starPromptDue, STAR_PROMPT_AFTER, formatBytes, formatDuration, installItemShort, installItemText, installProgress, installStep, installTimeLeft, timelineLinks, undoTarget, aspectLabel, parseRatio, sizeForRatio, sizeForLongSide, expandToRatio, expandToSize, arcLayout,goneVersions, PREVIEW_SIDE, stageFitsPreview, viewerWantsFull,} from "./logic";import type { GenerationRecord, InstallItem, JobView, LoraItem, Plan } from "./types";