Skip to content

armgit / kokon

Public Imported from GitHub
0

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.

508 B
Raw Blame
fn main() {
    // Bundled model files are fetched before `tauri dev` / `tauri build` (beforeDevCommand /
    // beforeBuildCommand); a plain `cargo build` needs them fetched first.
    let upscaler = std::path::Path::new("resources").join("4xNomos2_hq_mosr.pth");
    println!("cargo:rerun-if-changed={}", upscaler.display());
    if !upscaler.is_file() {
        panic!("{} is missing: run `npm run bundled` (scripts/release/fetch-bundled.mjs) first", upscaler.display());
    }
    tauri_build::build()
}