6c3fd449ce
Introduces an Explore view with a tag cloud that clusters image embeddings using cosine k-means and labels clusters via vocabulary-nearest-neighbour CLIP matching. Vocabulary embeddings are disk-cached (FNV hash-keyed) to avoid redundant inference. Enables CUDA for candle dependencies and adds a build.rs check that surfaces a clear error when the toolkit is missing.
47 lines
1.4 KiB
TOML
47 lines
1.4 KiB
TOML
[package]
|
|
name = "phokus"
|
|
version = "0.1.0"
|
|
description = "A performant image gallery application"
|
|
authors = ["JezzWTF"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "phokus_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[features]
|
|
default = []
|
|
candle-cuda = ["candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["protocol-asset"] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-fs = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
r2d2 = "0.8"
|
|
r2d2_sqlite = "0.25"
|
|
sqlite-vec = "=0.1.9"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp", "gif", "bmp", "tiff"] }
|
|
fast_image_resize = { version = "6.0.0", features = ["image"] }
|
|
walkdir = "2"
|
|
rayon = "1"
|
|
tokio = { version = "1", features = ["full"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
anyhow = "1"
|
|
log = "0.4"
|
|
ffmpeg-sidecar = "2.5.0"
|
|
xxhash-rust = { version = "0.8", features = ["xxh3"] }
|
|
sysinfo = "0.38.4"
|
|
candle-core = { version = "0.10.2", features = ["cuda"] }
|
|
candle-nn = { version = "0.10.2", features = ["cuda"] }
|
|
candle-transformers = { version = "0.10.2", features = ["cuda"] }
|
|
hf-hub = { version = "0.5.0", default-features = false, features = ["ureq", "native-tls"] }
|
|
tokenizers = "0.22.1"
|