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.

mac_bench test: compare the report path in the platform's form (failed on Windows)

Gabriele Lozuponedcf6ce18ac32
diff --git a/crates/qls-core/src/mac_bench.rs b/crates/qls-core/src/mac_bench.rs
index 41e6050..28ba9c3 100644
--- a/crates/qls-core/src/mac_bench.rs
+++ b/crates/qls-core/src/mac_bench.rs
@@ -350,7 +350,7 @@ mod tests {
..ModelProfile::default()
};
let out = report_path(Path::new("/data"));
- assert_eq!(out, PathBuf::from("/data/mac-bench-report.md"));
+ assert_eq!(out, Path::new("/data").join("mac-bench-report.md"));
let a = bench_args(&profile, &out, false);
assert_eq!(
a,
@@ -363,7 +363,7 @@ mod tests {
"--vae",
"/m/vae.safetensors",
"--out",
- "/data/mac-bench-report.md"
+ out.to_str().unwrap()
]
);
assert_eq!(